Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/angular-ui/ui-router
/ ensure
Function
ensure
test/angular/1.7/angular.js:2230–2232 ·
view source on GitHub ↗
(obj, name, factory)
Source
from the content-addressed store, hash-verified
2228
var
ngMinErr = minErr(
'ng'
);
2229
2230
function
ensure(obj, name, factory) {
2231
return
obj[name] || (obj[name] = factory());
2232
}
2233
2234
var
angular = ensure(window,
'angular'
, Object);
2235
Callers
1
setupModuleLoader
Function · 0.70
Calls
1
factory
Function · 0.70
Tested by
no test coverage detected