diff options
author | lrbabe <lrbabe@lrbabe-laptop> | 2010-06-25 16:24:36 +0200 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-09-24 10:11:05 -0400 |
commit | 5d45448e713af7d4a1e57a63ecde25589eb31007 (patch) | |
tree | 2cbc4fa4c83107ae9f22a11cd293c00f87108b31 /src | |
parent | a220c81eb9d65b514fcf3090a0aae75dadf5d371 (diff) | |
download | jquery-5d45448e713af7d4a1e57a63ecde25589eb31007.tar.gz jquery-5d45448e713af7d4a1e57a63ecde25589eb31007.zip |
Make the interval between two animations tick public: jQuery.fx.interval. Fixes #6276.
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js index 96441948b..d1d873def 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 ); |