aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-12-24 15:59:37 -0500
committerDave Methvin <dave.methvin@gmail.com>2014-01-07 16:01:34 -0500
commit085814474e4a854d533b5ccbaef24c090081e0c4 (patch)
tree622b6651fdc4fd12e11155d3ed1a49ae02ffd287 /src
parent5801c3a29a3c9a0d43f36c1d844f7cc7c24b3376 (diff)
downloadjquery-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.js5
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();
}
};