From 10c129088ac362cf38a113ede8c27fea00b8b6bb Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Wed, 5 Feb 2014 15:20:50 +0200 Subject: [PATCH] Add support for non-recursive eQueries in debug Window Change-Id: Id810dd3a1388cb239a9a3973c4b9369dd72428af --- client/src/com/vaadin/client/debug/internal/SelectorPath.java | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5