From 2f93fb9fbc6efecbb7216e0cecdfd4ceb90acb25 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 28 Jan 2015 02:21:21 -1000 Subject: [PATCH] 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. --- js/views/new_conversation_view.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/views/new_conversation_view.js b/js/views/new_conversation_view.js index 8a7760e1..3d0c1fc4 100644 --- a/js/views/new_conversation_view.js +++ b/js/views/new_conversation_view.js @@ -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) {