Skip to content

Commit

Permalink
history in config, rename jssm internal instance to machine
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed May 7, 2017
1 parent 791328b commit eebc788
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "0.6.0",
"version": "0.6.1",
"description": "A Javascript state machine with a simple API. Well tested, and typed with Flowtype. MIT License.",
"main": "dist/jssm.es5.browserified.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/js/jssm-types.js
Expand Up @@ -43,7 +43,9 @@ type JssmGenericMachine<NT, DT> = {

allow_empty? : boolean,
allow_islands? : boolean,
allow_force? : boolean
allow_force? : boolean,

keep_history? : boolean | number

};

Expand Down
4 changes: 3 additions & 1 deletion src/js/jssm.js
Expand Up @@ -17,7 +17,7 @@ const new_machine = (props:mixed) : JssmMachine => {



class jssm {
class machine {


constructor({ transitions } : JssmConfig) {
Expand Down Expand Up @@ -134,6 +134,8 @@ class jssm {

export {

machine,

new_machine,
version

Expand Down

0 comments on commit eebc788

Please sign in to comment.