diff --git a/src/views/composer.observe.js b/src/views/composer.observe.js index e8203e9..c5a05ed 100644 --- a/src/views/composer.observe.js +++ b/src/views/composer.observe.js @@ -534,7 +534,8 @@ this.focusState = this.getValue(false, false); // --------- destroy:composer event --------- - container.addEventListener(["DOMNodeRemoved"], handleDomNodeRemoved.bind(this), false); + container.addEventListener("DOMNodeRemoved", handleDomNodeRemoved.bind(this), false); + container.addEventListener("DOMNodeRemovedFromDocument", handleDomNodeRemoved.bind(this), false); // DOMNodeRemoved event is not supported in IE 8 // TODO: try to figure out a polyfill style fix, so it could be transferred to polyfills and removed if ie8 is not needed