I have a simple ArrayController in ember pre 1.0 and found that I can slice the list down if the filter finds an exact match for this property, but what I cannot find is how to make a “similar” request with the filter.
What i have below if i am looking for an array with users ...
filtered = ['id', 'username'].map(function(property) { return self.get('content').filterProperty(property, filter); });
... and multiple users have the same username. For example => if I search / filter "blacksmith", it will return both records, since the "username" property has an exact match for "smith"
How can I change this map function to work with a similar style request, so when I type the word "cm", it still finds both of these entries
Here is jsfiddle showing the filter shown above in action http://jsfiddle.net/Rf3h8/
Thank you in advance
source share