Permalink
Browse files

Made assignment of start function more obvious

  • Loading branch information...
nvh committed Oct 7, 2016
1 parent 9f8be26 commit 24d1b38c393354ae188df78faf3e1f1d68f93bec
Showing with 3 additions and 3 deletions.
  1. +3 −3 framer/Animation.coffee
View
@@ -167,12 +167,12 @@ class exports.Animation extends BaseClass
# the actual update loop. This saves a lot of frame budget.
@_prepareUpdateValues()
- # If animate is false we set everything immediately and skip the actual animation
- start = @_start
-
# The option keywords animate and instant trigger an instant animation
if @options.animate is false or @options.instant is true
+ # If animate is false we set everything immediately and skip the actual animation
start = @_instant
+ else
+ start = @_start
# If we have a delay, we wait a bit for it to start
if @options.delay

0 comments on commit 24d1b38

Please sign in to comment.