Skip to content

Commit

Permalink
[skip ci] annotate nodes as HTMLElements
Browse files Browse the repository at this point in the history
  • Loading branch information
valdrinkoshi authored Oct 10, 2017
1 parent 502cbfe commit 2732f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-header/app-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ <h1 main-title>App name</h1>
}
var nodes = Polymer.dom(this.$.slot).getDistributedNodes();
// Get the element with the sticky attribute on it or the first element in the light DOM.
for (var i = 0, node; node = nodes[i]; i++) {
for (var i = 0, node; node = /** @type {!HTMLElement} */ (nodes[i]); i++) {
if (node.nodeType === Node.ELEMENT_NODE) {
if (node.hasAttribute('sticky')) {
this._stickyElRef = node;
Expand Down

0 comments on commit 2732f95

Please sign in to comment.