This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 5 files changed +19
-15
lines changed
5 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 16
16
17
17
## Deprecation Notices
18
18
19
- - Deprecated ~~`aHrefSanitizationWhitelist`~~. It is now `aHrefSanitizationTrustedUri`
20
- - Deprecated ~~`imgSrcSanitizationWhitelist`~~. It is now `imgSrcSanitizationTrustedUri`
21
- - Deprecated ~~`xsrfWhitelistedOrigins`~~. It is now `xsrfTrustedOrigins`
22
- - Deprecated ~~`resourceUrlWhitelist`~~. It is now `trustedResourceUrlList`
23
- - Deprecated ~~`resourceUrlBlacklist`~~. It is now `bannedResourceUrlList`
19
+ - Deprecated ~~`$compileProvider.aHrefSanitizationWhitelist`~~.
20
+ It is now [aHrefSanitizationTrustedUrlList](https://docs.angularjs.org/api/ng/provider/$compileProvider#aHrefSanitizationTrustedUrlList)`.
21
+ - Deprecated ~~`$compileProvider.imgSrcSanitizationWhitelist`~~.
22
+ It is now [imgSrcSanitizationTrustedUrlList](https://docs.angularjs.org/api/ng/provider/$compileProvider#imgSrcSanitizationTrustedUrlList).
23
+ - Deprecated ~~`$httpProvider.xsrfWhitelistedOrigins`~~.
24
+ It is now [xsrfTrustedOrigins](https://docs.angularjs.org/api/ng/provider/$httpProvider#xsrfTrustedOrigins).
25
+ - Deprecated ~~`$sceDelegateProvider.resourceUrlWhitelist`~~.
26
+ It is now [trustedResourceUrlList](https://docs.angularjs.org/api/ng/provider/$sceDelegateProvider#trustedResourceUrlList).
27
+ - Deprecated ~~`$sceDelegateProvider.resourceUrlBlacklist`~~.
28
+ It is now [bannedResourceUrlList](https://docs.angularjs.org/api/ng/provider/$sceDelegateProvider#bannedResourceUrlList).
24
29
25
30
For the purposes of backward compatibility, the previous symbols are aliased to their new symbol.
26
31
Original file line number Diff line number Diff line change @@ -2663,7 +2663,7 @@ $scope.findTemplate = function(templateName) {
2663
2663
return templateCache[templateName];
2664
2664
};
2665
2665
2666
- // Alternatively, use `$sceDelegateProvider.. resourceUrlWhitelist()` (called
2666
+ // Alternatively, use `$sceDelegateProvider.resourceUrlWhitelist()` (called
2667
2667
// `trustedResourceUrlList()` from 1.8.1 onwards), which means you don't
2668
2668
// have to use `$sce.trustAsResourceUrl()` at all:
2669
2669
Original file line number Diff line number Diff line change @@ -1734,15 +1734,15 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1734
1734
* @deprecated
1735
1735
* sinceVersion="1.8.1"
1736
1736
*
1737
- * This function is deprecated. Use {@link $compileProvider#aHrefSanitizationTrustedUrlList
1737
+ * This method is deprecated. Use {@link $compileProvider#aHrefSanitizationTrustedUrlList
1738
1738
* aHrefSanitizationTrustedUrlList} instead.
1739
1739
*/
1740
1740
Object . defineProperty ( this , 'aHrefSanitizationWhitelist' , {
1741
1741
get : function ( ) {
1742
1742
return this . aHrefSanitizationTrustedUrlList ;
1743
1743
} ,
1744
- set : function ( regexp ) {
1745
- this . aHrefSanitizationTrustedUrlList = regexp ;
1744
+ set : function ( value ) {
1745
+ this . aHrefSanitizationTrustedUrlList = value ;
1746
1746
}
1747
1747
} ) ;
1748
1748
@@ -1785,15 +1785,15 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1785
1785
* @deprecated
1786
1786
* sinceVersion="1.8.1"
1787
1787
*
1788
- * This function is deprecated. Use {@link $compileProvider#imgSrcSanitizationTrustedUrlList
1788
+ * This method is deprecated. Use {@link $compileProvider#imgSrcSanitizationTrustedUrlList
1789
1789
* imgSrcSanitizationTrustedUrlList} instead.
1790
1790
*/
1791
1791
Object . defineProperty ( this , 'imgSrcSanitizationWhitelist' , {
1792
1792
get : function ( ) {
1793
1793
return this . imgSrcSanitizationTrustedUrlList ;
1794
1794
} ,
1795
- set : function ( regexp ) {
1796
- this . imgSrcSanitizationTrustedUrlList = regexp ;
1795
+ set : function ( value ) {
1796
+ this . imgSrcSanitizationTrustedUrlList = value ;
1797
1797
}
1798
1798
} ) ;
1799
1799
Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ function $HttpProvider() {
436
436
* @deprecated
437
437
* sinceVersion="1.8.1"
438
438
*
439
- * This function is deprecated. Use {@link $httpProvider#xsrfTrustedOrigins xsrfTrustedOrigins}
439
+ * This property is deprecated. Use {@link $httpProvider#xsrfTrustedOrigins xsrfTrustedOrigins}
440
440
* instead.
441
441
*/
442
442
Object . defineProperty ( this , 'xsrfWhitelistedOrigins' , {
Original file line number Diff line number Diff line change @@ -242,7 +242,6 @@ function $SceDelegateProvider() {
242
242
* The **default value** when no trusted resource URL list has been explicitly set is the empty
243
243
* array (i.e. there is no `bannedResourceUrlList`.)
244
244
*/
245
-
246
245
this . bannedResourceUrlList = function ( value ) {
247
246
if ( arguments . length ) {
248
247
bannedResourceUrlList = adjustMatchers ( value ) ;
@@ -258,7 +257,7 @@ function $SceDelegateProvider() {
258
257
* @deprecated
259
258
* sinceVersion="1.8.1"
260
259
*
261
- * This function is deprecated. Use {@link $sceDelegateProvider#bannedResourceUrlList
260
+ * This method is deprecated. Use {@link $sceDelegateProvider#bannedResourceUrlList
262
261
* bannedResourceUrlList} instead.
263
262
*/
264
263
Object . defineProperty ( this , 'resourceUrlBlacklist' , {
You can’t perform that action at this time.
0 commit comments