mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user