jakesgordon / javascript-state-machine

A javascript finite state machine library
MIT License
8.69k stars 964 forks source link

All transition name become lower case #116

Open casamia918 opened 7 years ago

casamia918 commented 7 years ago

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?