From: Manolo Carrasco Date: Wed, 7 Sep 2011 04:46:56 +0000 (+0000) Subject: fix bench example using val to test check-boxes X-Git-Tag: release-1.3.2~214 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e1f11d78b2253e803712164132d785166693fcc;p=gwtquery.git fix bench example using val to test check-boxes --- diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java index 67566b1e..37c88357 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java @@ -486,7 +486,7 @@ public class GwtQueryBenchModule implements EntryPoint { ArrayList bs = new ArrayList(); for (Element e : $("input", selectPanel.getElement()).elements()) { String val = $(e).val().replaceAll(" .*$", ""); - if (!"".equals(val)) { + if ($(e).prop("checked")) { for (Benchmark b : benchmarks) { if (b.getId().equals(val)) { bs.add(b);