aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdramaix <julien.dramaix@gmail.com>2013-11-29 12:30:01 +0100
committerjdramaix <julien.dramaix@gmail.com>2013-11-29 12:30:01 +0100
commitc02a0acd4893f04d89b472aa571cea3b571af84a (patch)
treec55be407c02e75a8c47439c780f57b35555fa147
parent9df2f18c2b655db88abc31787ae7903f01f71060 (diff)
downloadgwtquery-c02a0acd4893f04d89b472aa571cea3b571af84a.tar.gz
gwtquery-c02a0acd4893f04d89b472aa571cea3b571af84a.zip
test issue 226
-rw-r--r--gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java
index 6795a35d..e3ada526 100644
--- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java
+++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEventsTestGwt.java
@@ -1595,4 +1595,12 @@ public class GQueryEventsTestGwt extends GWTTestCase {
assertEquals(1, handler.invokationCounter);
}
+
+ public void testIssue226() {
+ $(e).html("<div id='target'>");
+ GQuery target = $("#target", e);
+
+ // this should not throw a NPE
+ target.undelegate("li", "click");
+ }
}