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

Refactor admin box JavaScript to use Backbone views #303

Merged
merged 21 commits into from Jan 29, 2013
Merged

Conversation

scribu
Copy link
Owner

@scribu scribu commented Jan 29, 2013

Over time, the JS that drives the metabox has transformed into typical jQuery spaghetti code.

Since WordPress 3.5 bundles Backbone.js, we should take advantage of it, or at least of the structure that Backbone.View provides.

Using Backbone models and collections would require altering the AJAX responses significantly, which I'll leave for another time.

Guide: https://github.com/kjbekkelund/writings/blob/master/published/understanding-backbone.md

scribu pushed a commit that referenced this pull request Jan 29, 2013
Refactor admin box JavaScript to use Backbone views
@scribu scribu merged commit 78c5e02 into master Jan 29, 2013
@scribu scribu deleted the backbone-views branch January 29, 2013 12:00
@scribu scribu mentioned this pull request Jan 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant