dhruvaray/backbone-associations — pull request #31 by vicentemundim (2013-03-27 19:12:18+00:00)
Title: Using `Backbone.Collection#set` to avoid losing reference to existing nested collections.

Backbone 1.0 introduced the method `Backbone.Collection#set` that will add/remove/merge collection models as needed. This works better than reseting the collection by always creating a new one.

When setting raw attributes on a model with a nested collection you can use this so that you don't lose references on nested models and collections.