Skip to content
Browse files

Fix for state checking

  • Loading branch information
koenbok committed May 15, 2014
1 parent 943df9a commit 80ea2f84d78163f18ab1e431f8cd94fa32a45815
Showing with 5 additions and 2 deletions.
  1. +5 −2 framer/
@@ -57,8 +57,11 @@ class exports.LayerStates extends BaseClass
# Switches to a specific state. If animationOptions are
# given use those, otherwise the default options.

if stateName is @_currentState
# We actually do want to allow this. A state can be set to something
# that does not equal the property values for that state.

# if stateName is @_currentState
# return

if not @_states.hasOwnProperty stateName
throw Error "No such state: '#{stateName}'"

0 comments on commit 80ea2f8

Please sign in to comment.