Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.