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

Function csp

test/angular/1.3/angular.js:950–967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

948}
949
950var csp = function() {
951 if (isDefined(csp.isActive_)) return csp.isActive_;
952
953 var active = !!(document.querySelector('[ng-csp]') ||
954 document.querySelector('[data-ng-csp]'));
955
956 if (!active) {
957 try {
958 /* jshint -W031, -W054 */
959 new Function('');
960 /* jshint +W031, +W054 */
961 } catch (e) {
962 active = true;
963 }
964 }
965
966 return (csp.isActive_ = active);
967};
968
969
970

Callers 1

$SnifferProviderFunction · 0.70

Calls 1

isDefinedFunction · 0.70

Tested by

no test coverage detected