]> source.dussan.org Git - gwtquery.git/commitdiff
Fix tests
authorMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>
Thu, 26 Nov 2015 08:00:25 +0000 (03:00 -0500)
committerMaxime Mériouma-Caron <maxime.meriouma@arcbees.com>
Thu, 26 Nov 2015 08:00:25 +0000 (03:00 -0500)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 16f5f8c7a4454586502cd3b078de4607e4fb2506..477bfb9e9870e24e26c202886fbbb62a0458eeaf 100644 (file)
@@ -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());