mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-17 16:34:49 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user