MessageView.appendAttachmentView: Remove from proper parent

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-08 19:46:02 -07:00
parent f602ac462f
commit 40651f44ab
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -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');