From 36518b1c59468fe32317f340fabc05e0fa40a840 Mon Sep 17 00:00:00 2001 From: Scott Miles Date: Thu, 29 Nov 2012 18:23:32 -0800 Subject: [PATCH] allow findController to step out of lightDOM (re issue #30) --- src/g-component.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/g-component.html b/src/g-component.html index 1dac228662..b9b001dd37 100644 --- a/src/g-component.html +++ b/src/g-component.html @@ -450,6 +450,9 @@ var n = inNode.changeling || inNode; while (n.parentNode && n.tagName !== 'SHADOW-ROOT') { n = n.parentNode; + if (n.lightDOM) { + n = n.host; + } if (n.changeling) { n = n.changeling; }