sebpiq / backbone.statemachine

Simple finite-state machine for Backbone. View states made easy. Synchronizing your application's parts with events made easy.
MIT License
177 stars 16 forks source link

Refactor transition lookup #10

Open sebpiq opened 12 years ago

sebpiq commented 12 years ago

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 :