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

Function ensure

lib/test/angular/1.5.0/angular.js:1938–1940  ·  view source on GitHub ↗
(obj, name, factory)

Source from the content-addressed store, hash-verified

1936 var ngMinErr = minErr('ng');
1937
1938 function ensure(obj, name, factory) {
1939 return obj[name] || (obj[name] = factory());
1940 }
1941
1942 var angular = ensure(window, 'angular', Object);
1943

Callers 1

setupModuleLoaderFunction · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected