MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / getModule

Function getModule

public/javascripts/require.js:495–504  ·  view source on GitHub ↗
(depMap)

Source from the content-addressed store, hash-verified

493 }
494
495 function getModule(depMap) {
496 var id = depMap.id,
497 mod = getOwn(registry, id);
498
499 if (!mod) {
500 mod = registry[id] = new context.Module(depMap);
501 }
502
503 return mod;
504 }
505
506 function on(depMap, name, fn) {
507 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