Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e13eeab commit 9d08b33Copy full SHA for 9d08b33
test/ngRoute/routeSpec.js
@@ -1028,9 +1028,10 @@ describe('$route', function() {
1028
$routeProvider = _$routeProvider_;
1029
1030
$provide.decorator('$sce', function($delegate) {
1031
+ function getVal(v) { return v.getVal ? v.getVal() : v; }
1032
$delegate.trustAsResourceUrl = function(url) { return new MySafeResourceUrl(url); };
- $delegate.getTrustedResourceUrl = function(v) { return v.getVal(); };
1033
- $delegate.valueOf = function(v) { return v.getVal(); };
+ $delegate.getTrustedResourceUrl = function(v) { return getVal(v); };
1034
+ $delegate.valueOf = function(v) { return getVal(v); };
1035
return $delegate;
1036
});
1037
0 commit comments