diff options
-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()); } |