Commit 7f1eb1c1 authored by John Resig's avatar John Resig

Landing a fix for a case where the animation timer wasn't getting stopped...

Landing a fix for a case where the animation timer wasn't getting stopped (thanks Arrix). Fixes bug #4001.
parent 831b15b0
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment