backbone.statemachine icon indicating copy to clipboard operation
backbone.statemachine copied to clipboard

Refactor transition lookup

Open sebpiq opened this issue 13 years ago • 0 comments

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

sebpiq avatar Jun 13 '12 17:06 sebpiq