Skip to content
Browse files

only emit state did switch event after state did switch

  • Loading branch information
J.P.P Treub
J.P.P Treub committed Mar 19, 2016
1 parent 9ea07a4 commit 42e6aa46c9d2c7b76dd7286f12c35a092e632197
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/
@@ -122,7 +122,7 @@ class exports.LayerStates extends BaseClass
for k, v of properties
@layer[k] = v unless _.isNumber(v) or Color.isColorObject(v)

@emit Events.StateDidSwitch, _.last(@_previousStates), stateName, @
@emit(Events.StateDidSwitch, _.last(@_previousStates), stateName, @) unless _.last(@_previousStates) is stateName

0 comments on commit 42e6aa4

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