Commit 70f662ba authored by Corey Frang's avatar Corey Frang

Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemelia @curiousdannii - Closes gh-1019

(cherry picked from commit 87730673)
parent 08894dcc
...@@ -82,7 +82,9 @@ function Animation( elem, properties, options ) { ...@@ -82,7 +82,9 @@ function Animation( elem, properties, options ) {
tick = function() { tick = function() {
var currentTime = fxNow || createFxNow(), var currentTime = fxNow || createFxNow(),
remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), 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, index = 0,
length = animation.tweens.length; length = animation.tweens.length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment