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

Conversation

Projects
None yet
1 participant
@scribu
Owner

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

Cristi Burcă
Merge pull request #303 from scribu/backbone-views
Refactor admin box JavaScript to use Backbone views

@scribu scribu merged commit 78c5e02 into master Jan 29, 2013

1 check was pending

default The Travis build is in progress
Details

@scribu scribu deleted the backbone-views branch Jan 29, 2013

@scribu scribu referenced this pull request Jan 31, 2013

Merged

Backbone Models #306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment