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

Commit

Permalink
Fix issue when mutation observers aren't supported
Browse files Browse the repository at this point in the history
Fixes gh-204
Closes gh-206
  • Loading branch information
mmariano authored and scottgonzalez committed Sep 24, 2015
1 parent 589bd3f commit d928d44
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit d928d44

Please sign in to comment.