Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemella @cur…

  • Loading branch information...
commit 877306738f931a711c41d907e69fc8930f985830 1 parent 31a19a8
@gnarf gnarf authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/effects.js
View
4 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 comments on commit 8773067

@gnarf
Owner

Ack sorry I got your name typed wrong @lukemelia

@lukemelia

No worries. Thanks for getting this fix in!

Please sign in to comment.
Something went wrong with that request. Please try again.