]> source.dussan.org Git - jquery.git/commitdiff
Make the interval between two animations tick public: jQuery.fx.interval. Fixes ...
authorlrbabe <lrbabe@lrbabe-laptop>
Fri, 25 Jun 2010 14:24:36 +0000 (16:24 +0200)
committerjeresig <jeresig@gmail.com>
Fri, 24 Sep 2010 14:11:05 +0000 (10:11 -0400)
src/effects.js

index 96441948ba0757083cabc6f80eb34d44d713b1c3..d1d873def42ded6824033dd19b2a07ce1e16cf6c 100644 (file)
@@ -329,7 +329,7 @@ jQuery.fx.prototype = {
                this.now = this.start;
                this.pos = this.state = 0;
 
-               var self = this;
+               var self = this, fx = jQuery.fx;
                function t( gotoEnd ) {
                        return self.step(gotoEnd);
                }
@@ -337,7 +337,7 @@ jQuery.fx.prototype = {
                t.elem = this.elem;
 
                if ( t() && jQuery.timers.push(t) && !timerId ) {
-                       timerId = setInterval(jQuery.fx.tick, 13);
+                       timerId = setInterval(fx.tick, fx.interval);
                }
        },
 
@@ -447,6 +447,8 @@ jQuery.extend( jQuery.fx, {
                        jQuery.fx.stop();
                }
        },
+  
+       interval: 13,
                
        stop: function() {
                clearInterval( timerId );