aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>2015-11-26 02:41:36 -0500
committerMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>2015-11-26 02:41:36 -0500
commit24542fc0b901d7a4cf7fadbc78022616eb0b0c6d (patch)
tree8be313daed338b78269290129ab9692947a8557e
parent454b3ea3cad3b40b9e3f9f4d853bc101e80ec1e2 (diff)
downloadgwtquery-24542fc0b901d7a4cf7fadbc78022616eb0b0c6d.tar.gz
gwtquery-24542fc0b901d7a4cf7fadbc78022616eb0b0c6d.zip
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..541f1b5e 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
@@ -240,6 +240,9 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
if (o instanceof IsWidget) {
return $(Arrays.asList(o));
}
+ if (o instanceof Element) {
+ return new GQuery((Element) o);
+ }
if (o instanceof JavaScriptObject) {
JavaScriptObject jso = (JavaScriptObject) o;
// Execute a native javascript function like jquery does