Refactor admin box JavaScript to use Backbone views #303

Merged
merged 21 commits into from Jan 29, 2013

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