Make the interval between two animations tick public: jQuery.fx.interval. Fixes #6276.

This commit is contained in:
lrbabe 2010-06-25 16:24:36 +02:00 committed by jeresig
parent a220c81eb9
commit 5d45448e71

6
src/effects.js vendored
View file

@ -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);
}
},
@ -448,6 +448,8 @@ jQuery.extend( jQuery.fx, {
}
},
interval: 13,
stop: function() {
clearInterval( timerId );
timerId = null;