Skip to content

Commit

Permalink
[ci skip] remove one new closure warning for updating closure
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jul 11, 2017
1 parent 8804307 commit 0cb560a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mixins/template-stamp.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
// manually.
next = node.nextSibling;
if (node.nodeType === Node.TEXT_NODE) {
let /** @type Node */ n = next;
let /** Node */ n = next;
while (n && (n.nodeType === Node.TEXT_NODE)) {
node.textContent += n.textContent;
next = n.nextSibling;
Expand All @@ -282,7 +282,7 @@
}
let childInfo = { parentIndex, parentInfo: nodeInfo };
if (this._parseTemplateNode(node, templateInfo, childInfo)) {
childInfo.infoIndex = templateInfo.nodeInfoList.push(childInfo) - 1;
childInfo.infoIndex = templateInfo.nodeInfoList.push(/** @type {!NodeInfo} */(childInfo)) - 1;
}
// Increment if not removed
if (node.parentNode) {
Expand Down Expand Up @@ -383,7 +383,7 @@
* @return {DocumentFragment} Content fragment
*/
static _contentForTemplate(template) {
let templateInfo = /** @type HTMLTemplateElementWithInfo */ (template)._templateInfo;
let templateInfo = /** @type {HTMLTemplateElementWithInfo} */ (template)._templateInfo;
return (templateInfo && templateInfo.content) || template.content;
}

Expand Down

0 comments on commit 0cb560a

Please sign in to comment.