Skip to content

Commit 3af9f34

Browse files
author
Steven Orvell
committed
Use attachShadow({shadyUpgradeFragment})
1 parent 8d7def7 commit 3af9f34

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/mixins/element-mixin.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -672,12 +672,8 @@ export const ElementMixin = dedupingMixin(base => {
672672
if (n.attachShadow) {
673673
if (dom) {
674674
if (!n.shadowRoot) {
675-
if (window.ShadyDOM && ShadyDOM['attachDom']) {
676-
ShadyDOM['attachDom'](dom, this, {mode: 'open'});
677-
} else {
678-
n.attachShadow({mode: 'open'});
679-
n.shadowRoot.appendChild(dom);
680-
}
675+
n.attachShadow({mode: 'open', shadyUpgradeFragment: dom});
676+
n.shadowRoot.appendChild(dom);
681677
}
682678
if (syncInitialRender && window.ShadyDOM) {
683679
ShadyDOM.flushInitial(n.shadowRoot);

0 commit comments

Comments
 (0)