queue-promote.js revision 6559274c8f98bb2b5f4a8042aed46608faf568d5
/**
* Adds methods promote and remove to Queue instances
*
* @module queue
* @submodule queue-promote
*/
/**
* Returns the current index in the queue of the specified callback
*
* @method indexOf
* @param callback {Function} the callback function
* @return {Number} the index of the callback or -1 if not found
*/
},
/**
* Moves the referenced callback function to the top of the queue
*
* @method promote
* @param callback {Function} reference to a function in the queue
*/
if (index > -1) {
}
},
/**
* Removes the referenced callback function from the queue
*
* @method remove
* @param callback {Function} reference to a function in the queue
*/
if (index > -1) {
}
}
});