Skip to content
Permalink
Browse files

Make the interval between two animations tick public: jQuery.fx.inter…

…val. Fixes #6276.
  • Loading branch information
lrbabe authored and jeresig committed Jun 25, 2010
1 parent a220c81 commit 5d45448e713af7d4a1e57a63ecde25589eb31007
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/effects.js
@@ -329,15 +329,15 @@ 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);
}

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 );

0 comments on commit 5d45448

Please sign in to comment.
You can’t perform that action at this time.