MCPcopy
hub / github.com/moxiecode/plupload / intakeDefines

Function intakeDefines

tests/js/require.js:1241–1260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1239 }
1240
1241 function intakeDefines() {
1242 var args;
1243
1244 //Any defined modules in the global queue, intake them now.
1245 takeGlobalQueue();
1246
1247 //Make sure any remaining defQueue items get properly processed.
1248 while (defQueue.length) {
1249 args = defQueue.shift();
1250 if (args[0] === null) {
1251 return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' +
1252 args[args.length - 1]));
1253 } else {
1254 //args are id, deps, factory. Should be normalized by the
1255 //define() function.
1256 callGetModule(args);
1257 }
1258 }
1259 context.defQueueMap = {};
1260 }
1261
1262 context = {
1263 config: config,

Callers 1

localRequireFunction · 0.85

Calls 4

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

Tested by

no test coverage detected