addyosmani/backbone.paginator — pull request #17 by alexandernst (2012-05-06 19:11:56+00:00)
Title: Add filter function (like _sort).

This is still WIP. It does the following thing:

* First you need to pass a field(s) (it can me a String or an Array) and a filter (String).
* The filter function will iterate all the models, and for each model it will get their field(s), and then it will try to match then using the filter. If the match is not null, it won't delete them from the models collection.

Bug: It will filter only after sorting, aka, it won't filter on each page change. But I guess that's a pretty minor bug, that could be fixed with a couple of lines. The important stuff is already done.

Also, that's only for the clientPager, but the patch should be exactly the same for the requestPager.

Regards!