From eae072e72d4daf7cec7f01331f048dec3bd2ad06 Mon Sep 17 00:00:00 2001 From: lilia Date: Sat, 7 Feb 2015 16:18:53 -1000 Subject: [PATCH] Remove unneeded var, add todo --- js/models/conversations.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 34128936..3dc8b8e3 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -18,7 +18,9 @@ window.Whisper = window.Whisper || {}; - var Conversation = Whisper.Conversation = Backbone.Model.extend({ + // TODO: Factor out private and group subclasses of Conversation + + Whisper.Conversation = Backbone.Model.extend({ database: Whisper.Database, storeName: 'conversations', defaults: function() { @@ -153,7 +155,7 @@ Whisper.ConversationCollection = Backbone.Collection.extend({ database: Whisper.Database, storeName: 'conversations', - model: Conversation, + model: Whisper.Conversation, comparator: function(m) { return -m.get('timestamp');