From: Corey Frang Date: Thu, 8 Nov 2012 03:29:55 +0000 (-0600) Subject: Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @curiousdannii ... X-Git-Tag: 1.9.0b1~111 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=877306738f931a711c41d907e69fc8930f985830;p=jquery.git Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @curiousdannii - Closes gh-1019 --- 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;