javascript-state-machine icon indicating copy to clipboard operation
javascript-state-machine copied to clipboard

All transition name become lower case

Open casamia918 opened this issue 7 years ago • 0 comments

I'm migrating from 2.x to 3.x. For example, I created my fsm like this

const myFsm = new StateMachin({
  init: 'Created',
  transitions: [
    {name: 'TransA', from: 'Created', to: 'StateA'},
    {name: 'TransB', from: 'StateA', to: 'StateC'},
  ]
})

When I print myFsm by console.log(myFsm) , the transition names are all lower cased

transa: [Function],
transb: [Function]

This naming conversion is very critical to me. Can you leave it the transition names alone?

casamia918 avatar Jun 13 '17 19:06 casamia918