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

StatefulRouter #16

Open afeld opened 12 years ago

afeld commented 12 years ago

I've been reading about Ember's Router (and how it works in the context of an application) - any thoughts about how this might interact with the Backbone Router, or if a special subclass can be added?

sebpiq commented 12 years ago

Hi ! That's actually a great idea ! Many times I've had the need to execute some stuff when leaving a page, or when transiting from one particular page to another. I guess we can add a special subclass. I won't have the time to do it before a few days, but feel free to fork and draft something, I'll definitely include it in the lib.