From 5a302271b31b1486efcc6d0b221f234ce6e1c79f Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 12 Feb 2015 00:17:10 -0800 Subject: [PATCH] Remove unneeded listeners --- js/views/list_view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/views/list_view.js b/js/views/list_view.js index 7a3b29ca0d..f14452ea9f 100644 --- a/js/views/list_view.js +++ b/js/views/list_view.js @@ -26,10 +26,9 @@ var Whisper = Whisper || {}; tagName: 'ul', itemView: Backbone.View, initialize: function() { - this.listenTo(this.collection, 'change', this.render); // auto update this.listenTo(this.collection, 'add', this.addOne); this.listenTo(this.collection, 'reset', this.addAll); - this.listenTo(this.collection, 'all', this.render); + }, addOne: function(model) {