Skip to content

Commit

Permalink
Add @nocollapse for jscompiler
Browse files Browse the repository at this point in the history
  • Loading branch information
rictic authored Aug 16, 2018
1 parent 6dc0184 commit 4e4db70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils/flattened-nodes-observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -97,7 +98,7 @@ export class FlattenedNodesObserver {
* @param {Element} target Node on which to listen for changes.
* @param {?function(!Element, { target: !Element, addedNodes: !Array<!Element>, removedNodes: !Array<!Element> }):void} callback Function called when there are additions
* or removals from the target's list of flattened nodes.
*/
*/
constructor(target, callback) {
/**
* @type {MutationObserver}
Expand Down

0 comments on commit 4e4db70

Please sign in to comment.