(context)
| 5 | |
| 6 | FSM.Machine = (function() { |
| 7 | function Machine(context) { |
| 8 | this.context = context; |
| 9 | this._stateTransitions = {}; |
| 10 | this._stateTransitionsAny = {}; |
| 11 | this._defaultTransition = null; |
| 12 | this._initialState = null; |
| 13 | this._currentState = null; |
| 14 | } |
| 15 | |
| 16 | Machine.prototype.addTransition = function(action, state, nextState, callback) { |
| 17 | if (!nextState) { |
nothing calls this directly
no outgoing calls
no test coverage detected