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

Function ensure

lib/test/angular/1.4.3/angular.js:1881–1883  ·  view source on GitHub ↗
(obj, name, factory)

Source from the content-addressed store, hash-verified

1879 var ngMinErr = minErr('ng');
1880
1881 function ensure(obj, name, factory) {
1882 return obj[name] || (obj[name] = factory());
1883 }
1884
1885 var angular = ensure(window, 'angular', Object);
1886

Callers 1

setupModuleLoaderFunction · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected