masylum/Backbone.Subset — pull request #2 by latentflip (2012-01-31 09:41:17+00:00)
Title: Update for backbone 0.9.0 support.

The only thing that seems to be needed is to rename all references to `collection._add` and `collection._remove` to `collection.add` and `collection.remove` since Backbone was refactored to remove `_add` and `_remove`.

The tests all pass, however I am a little concerned that all the tests pass even when I use Backbone v0.5.3. Does anyone know the rationale behind using `_add` instead of `add` in the first place?

As far as I can tell, using `_add` in Backbone 0.5.3 bypassed sorting of the collection, and triggering of `add` events on the models being added. Not sure if that's going to cause issues.