]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add support for non-recursive eQueries in debug Window
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Wed, 5 Feb 2014 13:20:50 +0000 (15:20 +0200)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Wed, 5 Feb 2014 13:20:50 +0000 (15:20 +0200)
Change-Id: Id810dd3a1388cb239a9a3973c4b9369dd72428af

client/src/com/vaadin/client/debug/internal/SelectorPath.java

index f92054e016e09b82609b814dc088e9ab7034a3c5..b2f72ef34ccffd6a505a997866a25cd169211155 100644 (file)
@@ -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;