░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/lib/yuilib/3.18.1/queue-promote
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: queue-promote-debug.js
YUI.add('queue-promote', function (Y, NAME) { /** * Adds methods promote, remove, and indexOf to Queue instances. * * @module queue-promote * @for Queue */ Y.mix(Y.Queue.prototype, { /** * Returns the current index in the queue of the specified item * * @method indexOf * @param needle {MIXED} the item to search for * @return {Number} the index of the item or -1 if not found */ indexOf : function (callback) { return Y.Array.indexOf(this._q, callback); }, /** * Moves the referenced item to the head of the queue * * @method promote * @param item {MIXED} an item in the queue */ promote : function (callback) { var index = this.indexOf(callback); if (index > -1) { this._q.unshift(this._q.splice(index,1)[0]); } }, /** * Removes the referenced item from the queue * * @method remove * @param item {MIXED} an item in the queue */ remove : function (callback) { var index = this.indexOf(callback); if (index > -1) { this._q.splice(index,1); } } }); }, '3.18.1', {"requires": ["yui-base"]});
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 queue-promote-debug.js
JS
1.2 KB
2026-02-11 01:44
EDIT
📄 queue-promote-min.js
JS
313 B
2026-02-11 01:44
EDIT
📄 queue-promote.js
JS
1.2 KB
2026-02-11 01:44
EDIT