diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-12-24 15:59:37 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-01-07 16:01:34 -0500 |
commit | 085814474e4a854d533b5ccbaef24c090081e0c4 (patch) | |
tree | 622b6651fdc4fd12e11155d3ed1a49ae02ffd287 /src | |
parent | 5801c3a29a3c9a0d43f36c1d844f7cc7c24b3376 (diff) | |
download | jquery-085814474e4a854d533b5ccbaef24c090081e0c4.tar.gz jquery-085814474e4a854d533b5ccbaef24c090081e0c4.zip |
Effects: First step() call should match :animated selector
Fixes #14623
Closes gh-1473
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js index b439d8d58..e3ccefff6 100644 --- a/src/effects.js +++ b/src/effects.js @@ -610,8 +610,11 @@ jQuery.fx.tick = function() { }; jQuery.fx.timer = function( timer ) { - if ( timer() && jQuery.timers.push( timer ) ) { + jQuery.timers.push( timer ); + if ( timer() ) { jQuery.fx.start(); + } else { + jQuery.timers.pop(); } }; |