Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit d928d44

Browse files
mmarianoscottgonzalez
authored andcommitted
Fix issue when mutation observers aren't supported
Fixes gh-204 Closes gh-206
1 parent 589bd3f commit d928d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Installer.prototype = {
4040
// a removal without an insertion when a node is redistributed among
4141
// shadows. Since it all ends up correct in the document, watching only
4242
// the document will yield the correct mutations to watch.
43-
if (targeting.canTarget(target)) {
43+
if (this.observer && targeting.canTarget(target)) {
4444
this.observer.observe(target, OBSERVER_INIT);
4545
}
4646
},

0 commit comments

Comments
 (0)