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

Function csp

lib/test/angular/1.4.3/angular.js:1055–1072  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1053}
1054
1055var csp = function() {
1056 if (isDefined(csp.isActive_)) return csp.isActive_;
1057
1058 var active = !!(document.querySelector('[ng-csp]') ||
1059 document.querySelector('[data-ng-csp]'));
1060
1061 if (!active) {
1062 try {
1063 /* jshint -W031, -W054 */
1064 new Function('');
1065 /* jshint +W031, +W054 */
1066 } catch (e) {
1067 active = true;
1068 }
1069 }
1070
1071 return (csp.isActive_ = active);
1072};
1073
1074/**
1075 * @ngdoc directive

Callers 1

$SnifferProviderFunction · 0.70

Calls 1

isDefinedFunction · 0.70

Tested by

no test coverage detected