MCPcopy
hub / github.com/requirejs/requirejs / getModule

Function getModule

require.js:499–508  ·  view source on GitHub ↗
(depMap)

Source from the content-addressed store, hash-verified

497 }
498
499 function getModule(depMap) {
500 var id = depMap.id,
501 mod = getOwn(registry, id);
502
503 if (!mod) {
504 mod = registry[id] = new context.Module(depMap);
505 }
506
507 return mod;
508 }
509
510 function on(depMap, name, fn) {
511 var id = depMap.id,

Callers 4

onFunction · 0.85
newContextFunction · 0.85
callGetModuleFunction · 0.85
localRequireFunction · 0.85

Calls 1

getOwnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…