From 2e4290f8381b53d692bd15da948e43b78ff48efc Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Mon, 17 Apr 2017 10:53:22 -0700 Subject: [PATCH] Use local `parentNode` --- src/lib/template/dom-if.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/template/dom-if.html b/src/lib/template/dom-if.html index 01dce89f90..9d699a22c7 100644 --- a/src/lib/template/dom-if.html +++ b/src/lib/template/dom-if.html @@ -89,7 +89,7 @@ if (!parentNode || (parentNode.nodeType == Node.DOCUMENT_FRAGMENT_NODE && (!Polymer.Settings.hasShadow || - !(this.parentNode instanceof ShadowRoot)))) { + !(parentNode instanceof ShadowRoot)))) { this._teardownInstance(); } },