Skip to content

Commit

Permalink
Make Closure compiler happier about ShadyDOM access
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed Jun 29, 2019
1 parent 0d2c2e5 commit 46ee2ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mixins/element-mixin.js
Expand Up @@ -693,7 +693,7 @@ export const ElementMixin = dedupingMixin(base => {
n.shadowRoot.appendChild(dom);
}
if (syncInitialRender && window.ShadyDOM) {
ShadyDOM.flushInitial(n.shadowRoot);
window.ShadyDOM.flushInitial(n.shadowRoot);
}
return n.shadowRoot;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/flattened-nodes-observer.js
Expand Up @@ -152,7 +152,7 @@ export let FlattenedNodesObserver = class {
/** @type {!NodeList<!Node>} */ (wrap(this._target).children));
if (window.ShadyDOM) {
this._shadyChildrenObserver =
ShadyDOM.observeChildren(this._target, (mutations) => {
window.ShadyDOM.observeChildren(this._target, (mutations) => {
this._processMutations(mutations);
});
} else {
Expand Down Expand Up @@ -182,7 +182,7 @@ export let FlattenedNodesObserver = class {
this._unlistenSlots(
/** @type {!NodeList<!Node>} */ (wrap(this._target).children));
if (window.ShadyDOM && this._shadyChildrenObserver) {
ShadyDOM.unobserveChildren(this._shadyChildrenObserver);
window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver);
this._shadyChildrenObserver = null;
} else if (this._nativeChildrenObserver) {
this._nativeChildrenObserver.disconnect();
Expand Down

0 comments on commit 46ee2ae

Please sign in to comment.