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.
This commit is contained in:
parent
5e064db28f
commit
0463e385e8
2 changed files with 1 additions and 8 deletions
|
@ -25,6 +25,6 @@
|
||||||
window.document.title = conversation.getTitle();
|
window.document.title = conversation.getTitle();
|
||||||
new Whisper.ConversationView({
|
new Whisper.ConversationView({
|
||||||
model: conversation
|
model: conversation
|
||||||
}).render().$el.prependTo($('body'));
|
}).$el.prependTo($('body'));
|
||||||
});
|
});
|
||||||
}());
|
}());
|
||||||
|
|
|
@ -96,13 +96,6 @@
|
||||||
$('body').toggleClass('settings-open');
|
$('body').toggleClass('settings-open');
|
||||||
console.log('toggling');
|
console.log('toggling');
|
||||||
debugger;
|
debugger;
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
|
||||||
this.delegateEvents();
|
|
||||||
this.view.delegateEvents();
|
|
||||||
this.view.scrollToBottom();
|
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue