diff options
author | Corey Frang <gnarf@gnarf.net> | 2012-11-07 21:29:55 -0600 |
---|---|---|
committer | Corey Frang <gnarf@gnarf.net> | 2012-11-07 21:29:55 -0600 |
commit | 877306738f931a711c41d907e69fc8930f985830 (patch) | |
tree | be7d9f6e01a752e80eecb924db6ffa1f873607ea | |
parent | 31a19a80bf216f8bf67e8be19d61355b310adfac (diff) | |
download | jquery-877306738f931a711c41d907e69fc8930f985830.tar.gz jquery-877306738f931a711c41d907e69fc8930f985830.zip |
Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @curiousdannii - Closes gh-1019
-rw-r--r-- | src/effects.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js index 4b6b2e4da..bfe282aa5 100644 --- a/src/effects.js +++ b/src/effects.js @@ -81,7 +81,9 @@ function Animation( elem, properties, options ) { tick = function() { var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - percent = 1 - ( remaining / animation.duration || 0 ), + // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) + temp = remaining / animation.duration || 0, + percent = 1 - temp, index = 0, length = animation.tweens.length; |