This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// StateRouter | |
// | |
// An example of an extended version of Backbone.Router | |
// that implements a simple state machine | |
// without altering the router's ability to function as a normal Backbone.Router | |
// states can be normal Backbone routes that function as intended | |
// states can also be non-route states that can't be routed into | |
// they're transitioned into using the transitionTo method | |
// |