Skip to content

Commit

Permalink
Add cast for compilation
Browse files Browse the repository at this point in the history
this._target is an Element, getFlattenedNodes accepts and HTMLElement

Upcoming version of closure compiler type checks this better
  • Loading branch information
rictic authored Sep 11, 2018
1 parent 2a49743 commit b0aa913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/flattened-nodes-observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ export class FlattenedNodesObserver {
addedNodes: [],
removedNodes: []
};
let newNodes = this.constructor.getFlattenedNodes(this._target);
let newNodes = this.constructor.getFlattenedNodes(
/** @type {!HTMLElement} */ (this._target));
let splices = calculateSplices(newNodes,
this._effectiveNodes);
// process removals
Expand Down

0 comments on commit b0aa913

Please sign in to comment.