From 260f50c104e41a2e1b14d80f5ea5e3796af0d34c Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 17 Jan 2017 14:39:51 -0800 Subject: [PATCH] Add id attr to key change advisory elements The id attribute is needed to ensure that message elements are inserted in the correct place in the DOM --- js/views/message_view.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/views/message_view.js b/js/views/message_view.js index dfb6d574..fab4d5a2 100644 --- a/js/views/message_view.js +++ b/js/views/message_view.js @@ -79,6 +79,9 @@ tagName: 'li', className: 'keychange', templateName: 'keychange', + id: function() { + return this.model.id; + }, initialize: function() { this.conversation = this.model.getModelForKeyChange(); this.listenTo(this.conversation, 'change', this.render);