Remove unused declaration

This commit is contained in:
JC Brand 2018-01-09 12:32:42 +00:00
parent 787a2a71f9
commit 2c7a942fbc

View File

@ -498,9 +498,8 @@
* attributes.
*/
const current_msg_date = moment(attrs.time) || moment,
prepend_html = _.bind(this.content.insertAdjacentHTML, this.content, 'afterbegin'),
previous_msg_date = this.getLastMessageDate(current_msg_date),
message_el = this.renderMessage(attrs);
previous_msg_date = this.getLastMessageDate(current_msg_date),
message_el = this.renderMessage(attrs);
if (_.isNull(previous_msg_date)) {
this.content.insertAdjacentElement('afterbegin', message_el);