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:
parent
0d6fbabb3e
commit
2f93fb9fbc
1 changed files with 0 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue