Permalink
Browse files

Switching back to ‘default’ as initial state name

Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information...
nvh committed Sep 15, 2016
1 parent 15f8ce3 commit 0b599de0145414f776d4eb9b4aca29ac2980e627
Showing with 2 additions and 1 deletion.
  1. +2 −1 framer/LayerStates.coffee
@@ -36,9 +36,10 @@ deprecatedProperty = (object, name, replacementSuggestion, stateMachine, getter,
class exports.LayerStates
constructor: (stateMachine) ->
- readOnlyProperty @, "initial", true, -> stateMachine.initial
readOnlyProperty @, "previous", false, -> stateMachine.previous
readOnlyProperty @, "current", false, -> stateMachine.current
+ readOnlyProperty @, "default", true, -> @initial
+ readOnlyProperty @, "initial", false, -> stateMachine.initial
readOnlyProperty @, "previousName", false, -> stateMachine.previousName
readOnlyProperty @, "currentName", false, -> stateMachine.currentName

0 comments on commit 0b599de

Please sign in to comment.