Permalink
Browse files

Add depracated ‘state’ propertie on layer.states

Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information...
nvh committed Sep 14, 2016
1 parent cc93537 commit 8d510b0ff0eab46c0d7016d6baa90c633a788ede
Showing with 2 additions and 0 deletions.
  1. +2 −0 framer/LayerStates.coffee
@@ -59,6 +59,8 @@ class exports.LayerStates
deprecatedProperty @, "switchInstant", "layer.switchInstant \"a\"", stateMachine, (layer) ->
(stateName) ->
layer.switchInstant stateName
+ deprecatedProperty @, "state", "layer.states.currentName", stateMachine, (layer) ->
+ layer.states.currentName
deprecatedProperty @, "all", "layer.stateNames", stateMachine, (layer) ->
layer.stateNames
deprecatedProperty @, "states", "layer.stateNames", stateMachine, (layer) ->

0 comments on commit 8d510b0

Please sign in to comment.