Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ var dispatcher = {
}
},
contains: /*scope.external.contains || */function(container, contained) {
return container.contains(contained);
try {
return container.contains(contained);
} catch(ex) {
// most likely: https://bugzilla.mozilla.org/show_bug.cgi?id=208427
return false;
}
},

// EVENTS
Expand Down
2 changes: 1 addition & 1 deletion src/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Installer.prototype = {
// a removal without an insertion when a node is redistributed among
// shadows. Since it all ends up correct in the document, watching only
// the document will yield the correct mutations to watch.
if (targeting.canTarget(target)) {
if (this.observer && targeting.canTarget(target)) {
this.observer.observe(target, OBSERVER_INIT);
}
},
Expand Down