MCPcopy
hub / github.com/requirejs/requirejs / takeGlobalQueue

Function takeGlobalQueue

require.js:558–570  ·  view source on GitHub ↗

* Internal method to transfer globalQueue items to this context's * defQueue.

()

Source from the content-addressed store, hash-verified

556 * defQueue.
557 */
558 function takeGlobalQueue() {
559 //Push all the globalDefQueue items into the context's defQueue
560 if (globalDefQueue.length) {
561 each(globalDefQueue, function(queueItem) {
562 var id = queueItem[0];
563 if (typeof id === 'string') {
564 context.defQueueMap[id] = true;
565 }
566 defQueue.push(queueItem);
567 });
568 globalDefQueue = [];
569 }
570 }
571
572 handlers = {
573 'require': function (mod) {

Callers 2

intakeDefinesFunction · 0.85
newContextFunction · 0.85

Calls 1

eachFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…