diff options
Diffstat (limited to 'gwtquery-core')
-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..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 |