Add cast for compilation

this._target is an Element, getFlattenedNodes accepts and HTMLElement

Upcoming version of closure compiler type checks this better
This commit is contained in:
Peter Burns
2018-09-10 20:00:27 -07:00
committed by GitHub
parent 2a49743362
commit b0aa913d51
+2 -1
View File
@@ -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