Make the interval between two animations tick public: jQuery.fx.interval. Fixes #6276.
This commit is contained in:
parent
a220c81eb9
commit
5d45448e71
6
src/effects.js
vendored
6
src/effects.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue