Skip to content

Commit

Permalink
Make the interval between two animations tick public: jQuery.fx.inter…
Browse files Browse the repository at this point in the history
…val. Fixes #6276.
  • Loading branch information
lrbabe authored and jeresig committed Sep 24, 2010
1 parent a220c81 commit 5d45448
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/effects.js
Expand Up @@ -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);
}
},

Expand Down Expand Up @@ -447,6 +447,8 @@ jQuery.extend( jQuery.fx, {
jQuery.fx.stop();
}
},

interval: 13,

stop: function() {
clearInterval( timerId );
Expand Down

0 comments on commit 5d45448

Please sign in to comment.