From e3066924b7eacb82ed63f31e1db25f3a7efd7c92 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Fri, 6 Jul 2018 18:11:34 -0700 Subject: [PATCH] Fix latent (benign) error thrown when removing dom-if via innerHTML. --- lib/elements/dom-if.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/elements/dom-if.js b/lib/elements/dom-if.js index 0b95ac568e..f6b928f9ad 100644 --- a/lib/elements/dom-if.js +++ b/lib/elements/dom-if.js @@ -251,8 +251,10 @@ export class DomIf extends PolymerElement { if (c$ && c$.length) { // use first child parent, for case when dom-if may have been detached let parent = c$[0].parentNode; - for (let i=0, n; (i