Skip to content
Permalink
Browse files

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

  • Loading branch information
gnarf committed Nov 8, 2012
1 parent 31a19a8 commit 877306738f931a711c41d907e69fc8930f985830
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

This comment has been minimized.

Copy link
Member Author

gnarf replied Nov 8, 2012

Ack sorry I got your name typed wrong @lukemelia

@lukemelia

This comment has been minimized.

Copy link

lukemelia replied Nov 8, 2012

No worries. Thanks for getting this fix in!

Please sign in to comment.
You can’t perform that action at this time.