Notebook: Backbone
Tiny model relations with Backbone.associate
Several months ago I outlined a minimal implementation for model associations in Backbone. As my projects at the time had little concern for their initial... Read on →
Why listenTo in Backbone 0.9.9
One of Backbone’s great advantages is that it changes very little. Up until the release of 0.9.9, the Events mixin used throughout the library provided... Read on →
Filtering Backbone Collections
Some data-heavier Backbone projects have gotten me to thinking a bit about how Backbone collections are organized. On the one hand, it’s hard to argue... Read on →
Initializing Backbone Applications
For one moment, forget the Models, the Controllers, the Routers and think about how they come to be. It isn’t magic: something, somewhere, reaches out to... Read on →
Catch-all routes in Backbone
Sooner or later, every Backbone application will encounter a route gone wrong. Handling mistyped URLs isn’t an absolute necessity, but it’s a... Read on →
Filtering Backbone Routes
A Backbone application needs to perform a login redirect whenever an unauthenticated user tries to reach a restricted a page. It’s a trivial task over on... Read on →