Method: initialState

After defining your states, call this with the state name and the initial state of the FSM will be set.
initialState (String stateName, * data, Function callback)
  • StringstateName The state to set as the initial state.
  • *data Any data you wish to pass the state's "enter" method.
  • Functioncallback An optional callback method that will be called once the state has been entered successfully, or if there was an error.
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point