MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / csp

Function csp

code/songhop/www/lib/angular/angular.js:933–950  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

931}
932
933var csp = function() {
934 if (isDefined(csp.isActive_)) return csp.isActive_;
935
936 var active = !!(document.querySelector('[ng-csp]') ||
937 document.querySelector('[data-ng-csp]'));
938
939 if (!active) {
940 try {
941 /* jshint -W031, -W054 */
942 new Function('');
943 /* jshint +W031, +W054 */
944 } catch (e) {
945 active = true;
946 }
947 }
948
949 return (csp.isActive_ = active);
950};
951
952
953

Callers 1

$SnifferProviderFunction · 0.70

Calls 1

isDefinedFunction · 0.70

Tested by

no test coverage detected