diff options
author | Maxime Meriouma-Caron <meriou@gmail.com> | 2015-12-01 18:15:56 -0500 |
---|---|---|
committer | Maxime Meriouma-Caron <meriou@gmail.com> | 2015-12-01 18:15:56 -0500 |
commit | 6a136c1577ba05c053d4711ab30438f169c7acd3 (patch) | |
tree | b24f0bed2258edef417ddb943fda0e9eee9a1216 | |
parent | 454b3ea3cad3b40b9e3f9f4d853bc101e80ec1e2 (diff) | |
parent | 797ce9bd21faa8c7c9d1fd043aac033a60ade0cc (diff) | |
download | gwtquery-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.java | 3 |
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()); } |