backbone.statemachine
backbone.statemachine copied to clipboard
Refactor transition lookup
Now transition lookup is quite dumb : receive an event, lookup in the transitions hash, current state -> event ? Wildcard -> event ? get the data and starts the transition.
It would be cool to : - "compile" the transitions - be able to declare states not only as wildcard but, as a regex