Open tracend opened 10 years ago
Proposal: an object can define links between states and methods executed, much like the events
object works.
states: {
"init": "onInit",
"postRender": "doPagination"
}
Possible reference Wordpress Actions: http://codex.wordpress.org/Plugin_API/Action_Reference
There is a loaded state for views but a proper finite state machine may allow more extensibility - for example: https://github.com/sebpiq/backbone.statemachine