From 0463e385e8386d8374174388229595bce7415f47 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 11 Feb 2015 23:53:50 -0800 Subject: [PATCH] Remove uneeded render This is an artifact of a time when conversation elements would pop in and out of the dom at a moment's notice, and thus needed to rebind their event listeners regularly. --- js/conversation_panel.js | 2 +- js/views/conversation_view.js | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/js/conversation_panel.js b/js/conversation_panel.js index f414c38aeb5..2083689fe51 100644 --- a/js/conversation_panel.js +++ b/js/conversation_panel.js @@ -25,6 +25,6 @@ window.document.title = conversation.getTitle(); new Whisper.ConversationView({ model: conversation - }).render().$el.prependTo($('body')); + }).$el.prependTo($('body')); }); }()); diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 20a534b3b90..d86ccaaeab5 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -96,13 +96,6 @@ $('body').toggleClass('settings-open'); console.log('toggling'); debugger; - }, - - render: function() { - this.delegateEvents(); - this.view.delegateEvents(); - this.view.scrollToBottom(); - return this; } }); })();