MCPcopy Create free account
hub / github.com/JsAaron/jQuery / intakeDefines

Function intakeDefines

迷你jQuery/basis/Require.js:1211–1228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1209 }
1210
1211 function intakeDefines() {
1212 var args;
1213
1214 //Any defined modules in the global queue, intake them now.
1215 takeGlobalQueue();
1216
1217 //Make sure any remaining defQueue items get properly processed.
1218 while (defQueue.length) {
1219 args = defQueue.shift();
1220 if (args[0] === null) {
1221 return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
1222 } else {
1223 //args are id, deps, factory. Should be normalized by the
1224 //define() function.
1225 callGetModule(args);
1226 }
1227 }
1228 }
1229
1230 context = {
1231 config: config,

Callers 1

localRequireFunction · 0.85

Calls 4

takeGlobalQueueFunction · 0.85
onErrorFunction · 0.85
makeErrorFunction · 0.85
callGetModuleFunction · 0.85

Tested by

no test coverage detected