Effects: First step() call should match :animated selector

(cherry picked from commit 085814474e)

Fixes #14623
Closes gh-1473
This commit is contained in:
Dave Methvin
2013-12-24 15:59:37 -05:00
parent ab1224dd2d
commit 09b28534fa
2 changed files with 19 additions and 1 deletions

5
src/effects.js vendored
View File

@@ -616,8 +616,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();
}
};