From: Teemu Suo-Anttila Date: Wed, 5 Feb 2014 13:20:50 +0000 (+0200) Subject: Add support for non-recursive eQueries in debug Window X-Git-Tag: 7.2.0.beta1~169^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10c129088ac362cf38a113ede8c27fea00b8b6bb;p=vaadin-framework.git Add support for non-recursive eQueries in debug Window Change-Id: Id810dd3a1388cb239a9a3973c4b9369dd72428af --- diff --git a/client/src/com/vaadin/client/debug/internal/SelectorPath.java b/client/src/com/vaadin/client/debug/internal/SelectorPath.java index f92054e016..b2f72ef34c 100644 --- a/client/src/com/vaadin/client/debug/internal/SelectorPath.java +++ b/client/src/com/vaadin/client/debug/internal/SelectorPath.java @@ -130,6 +130,10 @@ public class SelectorPath { elementQueryString = queryFragment + elementQueryString; } + if (!path.startsWith("//")) { + elementQueryString = "$" + elementQueryString; + } + // Return full Java variable assignment and eQuery return generateJavaVariable(fragments[fragments.length - 1]) + elementQueryString;