MCPcopy Index your code
hub / github.com/angular-ui/ui-router / csp

Function csp

test/angular/1.2/angular.js:1020–1037  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1018}
1019
1020var csp = function() {
1021 if (isDefined(csp.isActive_)) return csp.isActive_;
1022
1023 var active = !!(document.querySelector('[ng-csp]') ||
1024 document.querySelector('[data-ng-csp]'));
1025
1026 if (!active) {
1027 try {
1028 /* jshint -W031, -W054 */
1029 new Function('');
1030 /* jshint +W031, +W054 */
1031 } catch (e) {
1032 active = true;
1033 }
1034 }
1035
1036 return (csp.isActive_ = active);
1037};
1038
1039
1040

Callers 1

$SnifferProviderFunction · 0.70

Calls 1

isDefinedFunction · 0.70

Tested by

no test coverage detected