From: lrbabe Date: Fri, 25 Jun 2010 14:24:36 +0000 (+0200) Subject: Make the interval between two animations tick public: jQuery.fx.interval. Fixes ... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=5d45448e713af7d4a1e57a63ecde25589eb31007;hp=a220c81eb9d65b514fcf3090a0aae75dadf5d371;p=jquery.git Make the interval between two animations tick public: jQuery.fx.interval. Fixes #6276. --- diff --git a/src/effects.js b/src/effects.js index 9644194..d1d873d 100644 --- a/src/effects.js +++ b/src/effects.js @@ -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 );