Created
May 5, 2016 07:42
-
-
Save rystsov/1221d05bebf70197b6dd0b08d335a86a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FSM() { | |
this.state = null; | |
this.execute = function(action, msg) { | |
this.state = action(this.state, msg) | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment