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

Function intakeDefines

public/javascripts/require.js:1219–1236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1217 }
1218
1219 function intakeDefines() {
1220 var args;
1221
1222 //Any defined modules in the global queue, intake them now.
1223 takeGlobalQueue();
1224
1225 //Make sure any remaining defQueue items get properly processed.
1226 while (defQueue.length) {
1227 args = defQueue.shift();
1228 if (args[0] === null) {
1229 return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
1230 } else {
1231 //args are id, deps, factory. Should be normalized by the
1232 //define() function.
1233 callGetModule(args);
1234 }
1235 }
1236 }
1237
1238 context = {
1239 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