backbone.obscura
backbone.obscura copied to clipboard
A read-only proxy of a Backbone.Collection that can be filtered, sorted, and paginated.
Lets say we have a collection sorted on attribute 'name', and there are 4 entries with the name "Bob", if we change some other attribute, say 'age' on the second...
@jmorrell Great work on this library! One thing I'd like to do is perform sorts using a compareFunction comparator callback similar to how Array.prototype.sort does it. The callback provides two...
The `filtered:add` event is triggered in addFilter method, but `addFilter` method is executed before `execFilter`. ``` javascript filterBy: function (filterName, filter) { if (!filter) { filter = filterName; filterName =...
When trying to detect mode, it checked that `model.exports` is defined and assumed that means that require is also defined. However, this is not always the case; some libraries other...
When a model that exists in a obscura sorted collection changes and the change affects the sorted index of the model in the collection, the model is removed and then...