Landing a fix for a case where the animation timer wasn't getting stopped (thanks Arrix). Fixes bug #4001.

This commit is contained in:
John Resig 2009-02-13 16:15:23 +00:00
parent 831b15b06c
commit 7f1eb1c14f

View file

@ -285,7 +285,7 @@ jQuery.fx.prototype = {
t.elem = this.elem;
if ( t() && jQuery.timers.push(t) == 1 ) {
if ( t() && jQuery.timers.push(t) && !timerId ) {
timerId = setInterval(function(){
var timers = jQuery.timers;
@ -295,6 +295,7 @@ jQuery.fx.prototype = {
if ( !timers.length ) {
clearInterval( timerId );
timerId = undefined;
}
}, 13);
}