Backbonification - Migrating NewsBlur From DOM Spaghetti to Backbone.js
This talk explores patterns, techniques, and common pitfalls in migrating from vanilla JavaScript to Backbone.js. It covers moving routers, models, and views, and the process used to migrate a living app.
Rendering child views before the parent view means they will be attached to the wrong parent view • Pass {silent: true} to the initial reset, then manually trigger the reset event with Collection.change() • Another option is to use _.defer()
up models and views • Add {silent: true} to a model.set() call if you're not ready to handle the change events • When views are all setup, blast out a .change()