MCPcopy
hub / github.com/brianchirls/Seriously.js / on

Function on

lib/require.js:493–505  ·  view source on GitHub ↗
(depMap, name, fn)

Source from the content-addressed store, hash-verified

491 }
492
493 function on(depMap, name, fn) {
494 var id = depMap.id,
495 mod = getOwn(registry, id);
496
497 if (hasProp(defined, id) &&
498 (!mod || mod.defineEmitComplete)) {
499 if (name === 'defined') {
500 fn(defined[id]);
501 }
502 } else {
503 getModule(depMap).on(name, fn);
504 }
505 }
506
507 function onError(err, errback) {
508 var ids = err.requireModules,

Callers 1

newContextFunction · 0.85

Calls 4

getOwnFunction · 0.85
hasPropFunction · 0.85
fnFunction · 0.85
getModuleFunction · 0.85

Tested by

no test coverage detected