Open neogermi opened 12 years ago
Sounds very useful. Have you seen the new Collection where method in Backbone? That would probably be the right place instead of filter
No, haven't seen that before but I just gave it a try. My only issue with this is that it is actually a bit too simple. No regular expressions seem to work here. And filtering for types including their hierarchy would not be possible with that.
I will work on the above API during this week's hackathon in Copenhagen and we can discuss on this in Salzburg the week after.
Though a developer could use the underscore filter method. It might be worth giving the developer some convenience methods at hand to enable him/her to filter entities
directly within VIE.
I'm thinking of something like:
The idea here is to provide simple implementations of often-used functionality. Not to provide a full scope of all possible filter queries. For that, the native filter method should be used (which is still possible, given the above syntax).