r.js
function addWait(manager) {
            if (!waiting[manager.id]) {
                waiting[manager.id] = manager;
                waitAry.push(manager);
                context.waitCount += 1;
            }
        }
function addWait(manager) {
            if (!waiting[manager.id]) {
                waiting[manager.id] = manager;
                waitAry.push(manager);
                context.waitCount += 1;
            }
        }
function addWait ( manager ) { if ( ! waiting [ manager . id ] ) { waiting [ manager . id ] = manager ; waitAry . push ( manager ) ; context . waitCount += 1 ; } }
Adds the manager to the waiting queue. Only fully
resolved items should be in the waiting queue.
Adds the manager to the waiting queue . Only fully resolved items should be in the waiting queue .