Permalink
Browse files

Use @options.looping instead of private instance variable

  • Loading branch information...
nvh committed Jul 20, 2016
1 parent de39148 commit fe056b081512e30343e088fe44fae64ed6be545a
Showing with 3 additions and 4 deletions.
  1. +3 −4 framer/Animation.coffee
@@ -65,16 +65,15 @@ class exports.Animation extends BaseClass
@_parseAnimatorOptions()
@_originalState = @_currentState()
@_repeatCounter = @options.repeat
@_looping = @options.looping
@define "isAnimating",
get: -> @ in @options.layer.context.animations
@define "looping",
get: -> @_looping
get: -> @options.looping
set: (value) ->
@_looping = value
if @_looping and @options?.layer? and !@isAnimating
@options.looping = value
if (@options?.looping ? false) and @options?.layer? and !@isAnimating
@restart()
start: =>

0 comments on commit fe056b0

Please sign in to comment.