backbone-filtered-collection
backbone-filtered-collection copied to clipboard
Create a filtered version of a backbone collection that stays in sync.
Options to .set are forwarded already. This commit does the same for .add.
Fixes #5 I'm not sure I got this 100% correct, so I tried to be minimal. Let me know if I'm missing anything.
This started in 3dc90ef3085bc0b42aa9201e4c6f090fc3168ce7. In my app, I pass a filtered collection into a marionette collection view, which rerenders its children when the collection resets. This reset happens too often...
This module is incompatible with code that checks for `obj instanceof Backbone.Collection`. Is there a reason why these collections aren't simply extended from `Backbone.Collection`?
I'm using backbone-filtered-collection in combination with [Marionette's CollectionView](http://marionettejs.com/docs/marionette.collectionview.html). Originally, CollectionView renders one child view for every item in the collection. The views in my app are quite complex and some...