]> source.dussan.org Git - jquery.git/commitdiff
Renaming 'runner' to 'hooks' - makes it a little more obvious whats happening
authorCorey Frang <gnarf@gnarf.net>
Mon, 31 Oct 2011 13:33:11 +0000 (08:33 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 31 Oct 2011 13:47:19 +0000 (09:47 -0400)
src/effects.js
src/queue.js

index 458b1eae741aafc81b7432ce510fbb4ca014edfe..76d788661e58361adfddd13ba5b3c00fe33c3bbf 100644 (file)
@@ -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 ) {
index 67689ef42b7eb622ab4696ebfb5a66e52ce33a78..ef97485f9aced0905439768cef582e5f80e42652 100644 (file)
@@ -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 );
                        };
                });