Skip to content

Commit 46ee2ae

Browse files
committed
Make Closure compiler happier about ShadyDOM access
1 parent 0d2c2e5 commit 46ee2ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mixins/element-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ export const ElementMixin = dedupingMixin(base => {
693693
n.shadowRoot.appendChild(dom);
694694
}
695695
if (syncInitialRender && window.ShadyDOM) {
696-
ShadyDOM.flushInitial(n.shadowRoot);
696+
window.ShadyDOM.flushInitial(n.shadowRoot);
697697
}
698698
return n.shadowRoot;
699699
}

lib/utils/flattened-nodes-observer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export let FlattenedNodesObserver = class {
152152
/** @type {!NodeList<!Node>} */ (wrap(this._target).children));
153153
if (window.ShadyDOM) {
154154
this._shadyChildrenObserver =
155-
ShadyDOM.observeChildren(this._target, (mutations) => {
155+
window.ShadyDOM.observeChildren(this._target, (mutations) => {
156156
this._processMutations(mutations);
157157
});
158158
} else {
@@ -182,7 +182,7 @@ export let FlattenedNodesObserver = class {
182182
this._unlistenSlots(
183183
/** @type {!NodeList<!Node>} */ (wrap(this._target).children));
184184
if (window.ShadyDOM && this._shadyChildrenObserver) {
185-
ShadyDOM.unobserveChildren(this._shadyChildrenObserver);
185+
window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver);
186186
this._shadyChildrenObserver = null;
187187
} else if (this._nativeChildrenObserver) {
188188
this._nativeChildrenObserver.disconnect();

0 commit comments

Comments
 (0)