aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-09-07 04:46:56 +0000
committerManolo Carrasco <manolo@apache.org>2011-09-07 04:46:56 +0000
commit7e1f11d78b2253e803712164132d785166693fcc (patch)
tree57c4abe72f3be2a286e18e983528a3a842ce4635 /samples
parenta0fd64cadcd714af7cd02fdad9985237c9190423 (diff)
downloadgwtquery-7e1f11d78b2253e803712164132d785166693fcc.tar.gz
gwtquery-7e1f11d78b2253e803712164132d785166693fcc.zip
fix bench example using val to test check-boxes
Diffstat (limited to 'samples')
-rw-r--r--samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java2
1 files changed, 1 insertions, 1 deletions
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<Benchmark> bs = new ArrayList<Benchmark>();
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);