diff options
author | Corey Frang <gnarf@gnarf.net> | 2012-11-07 19:22:14 -0600 |
---|---|---|
committer | Corey Frang <gnarf@gnarf.net> | 2012-11-07 19:22:14 -0600 |
commit | 781a5c0b78a029b079aae970200d3e4edf543349 (patch) | |
tree | 509a5bc149895d8172d57cd6c3e18f84da1837bb /src/effects.js | |
parent | 6b14cef7a85d22d979266a754b2a279ecd636b24 (diff) | |
download | jquery-781a5c0b78a029b079aae970200d3e4edf543349.tar.gz jquery-781a5c0b78a029b079aae970200d3e4edf543349.zip |
Ensure each tick gets it's own fxNow - Fixes #12837 - Thanks @chadparry
Closes gh-1022
Closes gh-1021
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/effects.js b/src/effects.js index 7627e3a23..3c10892a0 100644 --- a/src/effects.js +++ b/src/effects.js @@ -612,6 +612,8 @@ jQuery.fx.tick = function() { timers = jQuery.timers, i = 0; + fxNow = jQuery.now(); + for ( ; i < timers.length; i++ ) { timer = timers[ i ]; // Checks the timer has not already been removed @@ -623,6 +625,7 @@ jQuery.fx.tick = function() { if ( !timers.length ) { jQuery.fx.stop(); } + fxNow = undefined; }; jQuery.fx.timer = function( timer ) { |