Skip to content

Commit

Permalink
MessageView.appendAttachmentView: Remove from proper parent
Browse files Browse the repository at this point in the history
FREEBIE
  • Loading branch information
scottnonnenberg committed Jun 9, 2017
1 parent f602ac4 commit 40651f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/views/message_view.js
Expand Up @@ -267,7 +267,7 @@
var parent = this.$('.attachments')[0];
if (view.updated && parent !== view.el.parentNode) {
if (view.el.parentNode) {
parent.removeChild(view.el);
view.el.parentNode.removeChild(view.el);
}

this.trigger('beforeChangeHeight');
Expand Down

0 comments on commit 40651f4

Please sign in to comment.