diff --git a/lib/utils/flattened-nodes-observer.js b/lib/utils/flattened-nodes-observer.js index 7d522dc45c..027a1837da 100644 --- a/lib/utils/flattened-nodes-observer.js +++ b/lib/utils/flattened-nodes-observer.js @@ -76,7 +76,8 @@ export class FlattenedNodesObserver { * * @param {HTMLElement|HTMLSlotElement} node The node for which to return the list of flattened nodes. * @return {Array} The list of flattened nodes for the given `node`. - */ + * @nocollapse See https://github.com/google/closure-compiler/issues/2763 + */ static getFlattenedNodes(node) { if (isSlot(node)) { node = /** @type {HTMLSlotElement} */(node); // eslint-disable-line no-self-assign @@ -97,7 +98,7 @@ export class FlattenedNodesObserver { * @param {Element} target Node on which to listen for changes. * @param {?function(!Element, { target: !Element, addedNodes: !Array, removedNodes: !Array }):void} callback Function called when there are additions * or removals from the target's list of flattened nodes. - */ + */ constructor(target, callback) { /** * @type {MutationObserver}