Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jan 1, 2017
1 parent e58e999 commit dca9e13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/blot/abstract/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ class ContainerBlot extends ShadowBlot implements Parent {
}
});
removedNodes.forEach((node) => {
if (node.parentNode != null &&
// Check node has actually been removed
// One exception is Chrome does not immediately remove IFRAMEs
// from DOM but MutationRecord is correct in its reported removal
if (node.parentNode != null && node.tagName !== 'IFRAME' &&
(document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
// Node has not actually been removed
return;
}
let blot = Registry.find(node);
Expand Down

0 comments on commit dca9e13

Please sign in to comment.