]> source.dussan.org Git - gwtquery.git/commitdiff
Fix #363 : form.submit()
authorMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>
Thu, 26 Nov 2015 07:41:36 +0000 (02:41 -0500)
committerMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>
Thu, 26 Nov 2015 07:41:36 +0000 (02:41 -0500)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 736f024a1aad1c3b2f72eec398117854602e1024..541f1b5ec7a9f238db9332f3d7efeb9ab520c340 100644 (file)
@@ -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