aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>2015-11-26 03:00:25 -0500
committerMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>2015-11-26 03:00:25 -0500
commit797ce9bd21faa8c7c9d1fd043aac033a60ade0cc (patch)
treeb24f0bed2258edef417ddb943fda0e9eee9a1216
parent081412bfbae1dd80979db4695e1f36aa723fdfea (diff)
downloadgwtquery-797ce9bd21faa8c7c9d1fd043aac033a60ade0cc.tar.gz
gwtquery-797ce9bd21faa8c7c9d1fd043aac033a60ade0cc.zip
Fix tests
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java2
1 files changed, 1 insertions, 1 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 16f5f8c7..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
@@ -235,7 +235,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
return new GQuery(((Function) o).getElement());
}
if (JsUtils.isElement(o)) {
- return $(JsUtils.<Element> cast(o));
+ return new GQuery(JsUtils.<Element> cast(o));
}
if (o instanceof JsonBuilder) {
return new GQuery(((JsonBuilder) o).<Element>getDataImpl());