From 0cb560a4d73f27760651019596463c2e700a3a22 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 11 Jul 2017 14:52:14 -0700 Subject: [PATCH] [ci skip] remove one new closure warning for updating closure --- lib/mixins/template-stamp.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html index c67a154469..ffbadc4ac4 100644 --- a/lib/mixins/template-stamp.html +++ b/lib/mixins/template-stamp.html @@ -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; @@ -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) { @@ -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; }