Commit 0191e989 authored by Corey Frang's avatar Corey Frang Committed by Dave Methvin

Renaming 'runner' to 'hooks' - makes it a little more obvious whats happening

parent 38f087b5
......@@ -270,9 +270,9 @@ jQuery.fn.extend({
}
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 ) {
......
......@@ -71,7 +71,7 @@ jQuery.extend({
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" ) {
......@@ -85,10 +85,10 @@ jQuery.extend({
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 ) {
......@@ -127,9 +127,9 @@ jQuery.fn.extend({
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 );
};
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment