jmorrell / backbone.obscura

A read-only proxy of a Backbone.Collection that can be filtered, sorted, and paginated.
http://jmorrell.github.io/backbone.obscura/
MIT License
107 stars 19 forks source link

add filterNames #1

Closed mulderp closed 11 years ago

mulderp commented 11 years ago

A small wrapper to retrieve the names of the filters

jmorrell commented 11 years ago

A couple of points:

I'll try to merge this in and get things sorted out later today.

[*] By that same logic, I just realized that filterBy should probably also be changed to setFilter

mulderp commented 11 years ago

Interesting! Hmm.. maybe "addFilter" would be nice too, since we have "removeFilter()". "setFilter" sounds more like a setter of a property, but since we can have a list of filters, add/remove somewhat clarifies that.

I also can update this PR later today or in the next days.