Skip to content
Browse files

warn if there is noting to animate

  • Loading branch information
Koen Bok
Koen Bok committed Apr 9, 2016
1 parent 0e405b4 commit a9f4263a3d46101fe7ae317b323849c09b68a0d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/
@@ -97,7 +97,7 @@ class exports.Animation extends BaseClass
# Filter out the properties that are equal
@_stateB[k] = v if @_stateA[k] != v

if _.keys(@_stateA).length is 0
if _.keys(@_stateA).length is 0 or _.keys(@_stateB).length is 0
console.warn "Animation: nothing to animate, no animatable properties"
return false

0 comments on commit a9f4263

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