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

Function ensure

test/angular/1.5/angular.js:2056–2058  ·  view source on GitHub ↗
(obj, name, factory)

Source from the content-addressed store, hash-verified

2054 var ngMinErr = minErr('ng');
2055
2056 function ensure(obj, name, factory) {
2057 return obj[name] || (obj[name] = factory());
2058 }
2059
2060 var angular = ensure(window, 'angular', Object);
2061

Callers 1

setupModuleLoaderFunction · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected