MCPcopy
hub / github.com/angular-ui/ui-router / ensure

Function ensure

test/angular/1.4/angular.js:1945–1947  ·  view source on GitHub ↗
(obj, name, factory)

Source from the content-addressed store, hash-verified

1943 var ngMinErr = minErr('ng');
1944
1945 function ensure(obj, name, factory) {
1946 return obj[name] || (obj[name] = factory());
1947 }
1948
1949 var angular = ensure(window, 'angular', Object);
1950

Callers 1

setupModuleLoaderFunction · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected