Skip to content

Commit

Permalink
Merge pull request #5327 from Polymer/flattened-nodes-nocollapse
Browse files Browse the repository at this point in the history
Add @nocollapse for jscompiler
  • Loading branch information
rictic authored Aug 16, 2018
2 parents 6dc0184 + 4e4db70 commit d206b8d
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 d206b8d

Please sign in to comment.