}
function stopQueue( elem, data, i ) {
- var runner = data[ i ];
+ var hooks = data[ i ];
jQuery.removeData( elem, i, true );
- runner.stop( gotoEnd );
+ hooks.stop( gotoEnd );
}
if ( type == null ) {
var queue = jQuery.queue( elem, type ),
fn = queue.shift(),
- runner = {};
+ hooks = {};
// If the fx queue is dequeued, always remove the progress sentinel
if ( fn === "inprogress" ) {
queue.unshift( "inprogress" );
}
- jQuery._data( elem, type + ".run", runner );
+ jQuery._data( elem, type + ".run", hooks );
fn.call( elem, function() {
jQuery.dequeue( elem, type );
- }, runner );
+ }, hooks );
}
if ( !queue.length ) {
time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
type = type || "fx";
- return this.queue( type, function( next, runner ) {
+ return this.queue( type, function( next, hooks ) {
var timeout = setTimeout( next, time );
- runner.stop = function() {
+ hooks.stop = function() {
clearTimeout( timeout );
};
});