From 877306738f931a711c41d907e69fc8930f985830 Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Wed, 7 Nov 2012 21:29:55 -0600 Subject: [PATCH] Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @curiousdannii - Closes gh-1019 --- src/effects.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5