Skip to content

Commit

Permalink
don't depend on attachDom existing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Apr 10, 2019
1 parent 707a376 commit 8d7def7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ export const ElementMixin = dedupingMixin(base => {
if (n.attachShadow) {
if (dom) {
if (!n.shadowRoot) {
if (window.ShadyDOM) {
if (window.ShadyDOM && ShadyDOM['attachDom']) {
ShadyDOM['attachDom'](dom, this, {mode: 'open'});
} else {
n.attachShadow({mode: 'open'});
Expand Down

0 comments on commit 8d7def7

Please sign in to comment.