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 1 changed file with 3 additions and 1 deletion.
@@ -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
Copy link
Member Author

@gnarf gnarf commented on 8773067 Nov 8, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack sorry I got your name typed wrong @lukemelia

@lukemelia
Copy link

@lukemelia lukemelia commented on 8773067 Nov 8, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries. Thanks for getting this fix in!

Please sign in to comment.