Skip to content
Permalink
Browse files

Landing a fix for a case where the animation timer wasn't getting sto…

…pped (thanks Arrix). Fixes bug #4001.
  • Loading branch information
jeresig committed Feb 13, 2009
1 parent 831b15b commit 7f1eb1c14fdf9a5d149c907df9e331cbecfa9720
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/fx.js
@@ -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);
}

0 comments on commit 7f1eb1c

Please sign in to comment.
You can’t perform that action at this time.