Make the interval between two animations tick public: jQuery.fx.interval. Fixes #6276.
This commit is contained in:
parent
a220c81eb9
commit
5d45448e71
1 changed files with 4 additions and 2 deletions
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);
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -447,6 +447,8 @@ jQuery.extend( jQuery.fx, {
|
|||
jQuery.fx.stop();
|
||||
}
|
||||
},
|
||||
|
||||
interval: 13,
|
||||
|
||||
stop: function() {
|
||||
clearInterval( timerId );
|
||||
|
|
Loading…
Reference in a new issue