-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
It may be a documentation issue, or it may be a bug, I can't tell.
Line 59 results in an error because this.models (usually set in the Backbone.Collection constructor) hasn't been set yet. I'm not 100% sure what solution to suggest (thus why it's not a pull request) since I'm not really sure if it's a bug or documentation issue. Either way it's worth fixing because this is a very handy, well written tool.
Steps to Reproduce:
coll = new Backbone.Collection([], {})
new Backbone.Subset([], {parent: coll, sieve: function(m) { return true; }})
This happens whether or not you pass in the undocumented no_reset option. If no_reset is true the error fires at line 152
Metadata
Metadata
Assignees
Labels
No labels