Skip to content

Commit

Permalink
Merge pull request #35 from jimdefrisco/init-fix
Browse files Browse the repository at this point in the history
add some defense to catch console error
  • Loading branch information
jimdefrisco authored May 22, 2018
2 parents 17b6d8e + 8b94a5c commit 1d7e551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion px-tooltip.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@
target = this.for;
}
//DOCUMENT_FRAGMENT_NODE
else if(parentNode.nodeType === 11) {
else if(!parentNode || (parentNode.nodeType === 11)) {
//at this point if we can't find the acual owner root
//we're probably not attached yet. Just set it to null
//and wait for 'this' to be attached and rerun this function
Expand Down

0 comments on commit 1d7e551

Please sign in to comment.