MCPcopy
hub / github.com/GetmeUK/ContentTools / Machine

Function Machine

external/scripts/content-edit.js:7–14  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected