Permalink
Browse files

Usining first statename as initial state

Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information...
nvh committed Sep 15, 2016
1 parent 6c644c5 commit 7e30a0fd166b526830a90e20ebd6274bc0169e62
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/LayerStateMachine.coffee
@@ -43,7 +43,7 @@ class exports.LayerStateMachine extends BaseClass
reset: ->
@states = new LayerStates(@)
@_previousNames = []
- @currentName = "initial"
+ @currentName = _.first(@stateNames)
emit: (args...) ->
super

0 comments on commit 7e30a0f

Please sign in to comment.