aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue.js
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2011-10-31 08:33:11 -0500
committerDave Methvin <dave.methvin@gmail.com>2011-10-31 09:47:19 -0400
commit0191e98934b40be5699a85087b5342a149c978ce (patch)
tree00f677708a7b64383ad6bdba35437a83c4229ad1 /src/queue.js
parent38f087b5ae86faba941426437c3fd1d746de9be1 (diff)
downloadjquery-0191e98934b40be5699a85087b5342a149c978ce.tar.gz
jquery-0191e98934b40be5699a85087b5342a149c978ce.zip
Renaming 'runner' to 'hooks' - makes it a little more obvious whats happening
Diffstat (limited to 'src/queue.js')
-rw-r--r--src/queue.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/queue.js b/src/queue.js
index 67689ef42..ef97485f9 100644
--- a/src/queue.js
+++ b/src/queue.js
@@ -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 );
};
});