Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize View states #68

Open
tracend opened this issue Sep 28, 2013 · 1 comment
Open

Standardize View states #68

tracend opened this issue Sep 28, 2013 · 1 comment
Labels

Comments

@tracend
Copy link
Member

tracend commented Sep 28, 2013

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
Copy link
Member Author

tracend commented Sep 28, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant