MCPcopy Create free account
hub / github.com/apache/cloudstack / ensure

Function ensure

tools/ngui/static/js/lib/angular.js:1064–1066  ·  view source on GitHub ↗
(obj, name, factory)

Source from the content-addressed store, hash-verified

1062function setupModuleLoader(window) {
1063
1064 function ensure(obj, name, factory) {
1065 return obj[name] || (obj[name] = factory());
1066 }
1067
1068 return ensure(ensure(window, 'angular', Object), 'module', function() {
1069 /** @type {Object.<string, angular.Module>} */

Callers 1

setupModuleLoaderFunction · 0.85

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected