From 5d45448e713af7d4a1e57a63ecde25589eb31007 Mon Sep 17 00:00:00 2001 From: lrbabe Date: Fri, 25 Jun 2010 16:24:36 +0200 Subject: [PATCH] Make the interval between two animations tick public: jQuery.fx.interval. Fixes #6276. --- src/effects.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/effects.js b/src/effects.js index 96441948..d1d873de 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 );