Skip to content

Commit

Permalink
Merge pull request #5487 from Polymer/shadydom-upgrade
Browse files Browse the repository at this point in the history
Use `ShadyDOM.attachDom`
  • Loading branch information
dfreedm authored Apr 19, 2019
2 parents 8f4cc31 + 002a431 commit 176c001
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 132 deletions.
4 changes: 2 additions & 2 deletions lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,9 @@ export const ElementMixin = dedupingMixin(base => {
if (n.attachShadow) {
if (dom) {
if (!n.shadowRoot) {
n.attachShadow({mode: 'open'});
n.attachShadow({mode: 'open', shadyUpgradeFragment: dom});
n.shadowRoot.appendChild(dom);
}
n.shadowRoot.appendChild(dom);
if (syncInitialRender && window.ShadyDOM) {
ShadyDOM.flushInitial(n.shadowRoot);
}
Expand Down
Loading

0 comments on commit 176c001

Please sign in to comment.