Skip to content

Commit

Permalink
Use attachShadow({shadyUpgradeFragment})
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Apr 13, 2019
1 parent 8d7def7 commit 3af9f34
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,12 +672,8 @@ export const ElementMixin = dedupingMixin(base => {
if (n.attachShadow) {
if (dom) {
if (!n.shadowRoot) {
if (window.ShadyDOM && ShadyDOM['attachDom']) {
ShadyDOM['attachDom'](dom, this, {mode: 'open'});
} else {
n.attachShadow({mode: 'open'});
n.shadowRoot.appendChild(dom);
}
n.attachShadow({mode: 'open', shadyUpgradeFragment: dom});
n.shadowRoot.appendChild(dom);
}
if (syncInitialRender && window.ShadyDOM) {
ShadyDOM.flushInitial(n.shadowRoot);
Expand Down

0 comments on commit 3af9f34

Please sign in to comment.