aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>2015-11-26 02:54:11 -0500
committerMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>2015-11-26 02:54:11 -0500
commit081412bfbae1dd80979db4695e1f36aa723fdfea (patch)
treea142e20dcf1991131cd9648d5d31a8eb34c7f8a7
parent24542fc0b901d7a4cf7fadbc78022616eb0b0c6d (diff)
downloadgwtquery-081412bfbae1dd80979db4695e1f36aa723fdfea.tar.gz
gwtquery-081412bfbae1dd80979db4695e1f36aa723fdfea.zip
Fix tests
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java6
1 files changed, 3 insertions, 3 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 541f1b5e..16f5f8c7 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,15 +234,15 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
if (o instanceof Function) {
return new GQuery(((Function) o).getElement());
}
+ if (JsUtils.isElement(o)) {
+ return $(JsUtils.<Element> cast(o));
+ }
if (o instanceof JsonBuilder) {
return new GQuery(((JsonBuilder) o).<Element>getDataImpl());
}
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