Rebind events when opening a previously opened conversation

This commit is contained in:
lilia 2014-11-25 13:54:44 -08:00
parent 99a2685f93
commit ccbe837ca2
2 changed files with 2 additions and 2 deletions

View file

@ -24,8 +24,6 @@ var Whisper = Whisper || {};
if (!this.view) {
this.view = new Whisper.ConversationView({ model: this.model });
} else {
this.view.delegateEvents();
}
this.model.collection.trigger('selected', this.view);
},

View file

@ -57,6 +57,8 @@
},
render: function() {
this.delegateEvents();
this.view.delegateEvents();
this.view.scrollToBottom();
return this;
}