Commit 87730673 authored by Corey Frang's avatar Corey Frang

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

parent 31a19a80
...@@ -81,7 +81,9 @@ function Animation( elem, properties, options ) { ...@@ -81,7 +81,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