From 24542fc0b901d7a4cf7fadbc78022616eb0b0c6d Mon Sep 17 00:00:00 2001 From: Maxime Mériouma-Caron Date: Thu, 26 Nov 2015 02:41:36 -0500 Subject: Fix #363 : form.submit() --- gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gwtquery-core') 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 { 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 -- cgit v1.2.3