makesites / backbone-app

An APP() class that encapsulates popular Backbone.js operations
6 stars 1 forks source link

Standardize View states #68

Open tracend opened 10 years ago

tracend commented 10 years ago

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

tracend commented 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