]> source.dussan.org Git - gwtquery.git/commitdiff
fix bench example using val to test check-boxes
authorManolo Carrasco <manolo@apache.org>
Wed, 7 Sep 2011 04:46:56 +0000 (04:46 +0000)
committerManolo Carrasco <manolo@apache.org>
Wed, 7 Sep 2011 04:46:56 +0000 (04:46 +0000)
samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java

index 67566b1ef8ae780a6bd5fe075ce52406d25abaec..37c88357e8ccf427117563158b0aad4ab8c461b9 100644 (file)
@@ -486,7 +486,7 @@ public class GwtQueryBenchModule implements EntryPoint {
     ArrayList<Benchmark> bs = new ArrayList<Benchmark>();\r
     for (Element e : $("input", selectPanel.getElement()).elements()) {\r
       String val = $(e).val().replaceAll(" .*$", "");\r
-      if (!"".equals(val)) {\r
+      if ($(e).prop("checked")) {\r
         for (Benchmark b : benchmarks) {\r
           if (b.getId().equals(val)) {\r
             bs.add(b);\r