Remove unneeded comparator

This collection is just an in-memory indexer used for typeaheads. For
display, the matching models are added to a separate collection. Thus,
the order of the elements in the typeahead collection does not matter.
This commit is contained in:
lilia 2015-01-28 02:21:21 -10:00
parent 0d6fbabb3e
commit 2f93fb9fbc

View file

@ -24,10 +24,6 @@ var Whisper = Whisper || {};
storeName: 'conversations',
model: Whisper.Conversation,
comparator: function(m) {
return m.get('name');
},
_tokenize: function(s) {
s = $.trim(s);
if (s.length === 0) {