Permalink
Browse files

Also checking if @_stateB is empty so we have nothing to animate to

  • Loading branch information...
nvh committed Oct 3, 2016
1 parent 8695f71 commit c8f66f30a0ac743ecfe7ad6924ac140972b26862
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/Animation.coffee
View
@@ -131,7 +131,7 @@ class exports.Animation extends BaseClass
console.warn "Animation: nothing to animate, no animatable properties"
return @_noop()
if _.isEqual(@_stateA, @_stateB)
if _.isEqual(@_stateA, @_stateB) or _.keys(@_stateB).length is 0
console.warn "Animation: nothing to animate, all properties are equal to what it is now"
return @_noop()

0 comments on commit c8f66f3

Please sign in to comment.