MCPcopy
hub / github.com/requirejs/requirejs / intakeDefines

Function intakeDefines

require.js:1244–1263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…