aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Meriouma-Caron <meriou@gmail.com>2015-12-01 18:15:56 -0500
committerMaxime Meriouma-Caron <meriou@gmail.com>2015-12-01 18:15:56 -0500
commit6a136c1577ba05c053d4711ab30438f169c7acd3 (patch)
treeb24f0bed2258edef417ddb943fda0e9eee9a1216
parent454b3ea3cad3b40b9e3f9f4d853bc101e80ec1e2 (diff)
parent797ce9bd21faa8c7c9d1fd043aac033a60ade0cc (diff)
downloadgwtquery-6a136c1577ba05c053d4711ab30438f169c7acd3.tar.gz
gwtquery-6a136c1577ba05c053d4711ab30438f169c7acd3.zip
Merge pull request #364 from ArcBees/mmc_fix_submit
Fix #363 : form.submit()
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
index 736f024a..477bfb9e 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
@@ -234,6 +234,9 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
if (o instanceof Function) {
return new GQuery(((Function) o).getElement());
}
+ if (JsUtils.isElement(o)) {
+ return new GQuery(JsUtils.<Element> cast(o));
+ }
if (o instanceof JsonBuilder) {
return new GQuery(((JsonBuilder) o).<Element>getDataImpl());
}