From: Maxime Mériouma-Caron Date: Thu, 26 Nov 2015 08:00:25 +0000 (-0500) Subject: Fix tests X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=797ce9bd21faa8c7c9d1fd043aac033a60ade0cc;p=gwtquery.git Fix tests --- 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 { return new GQuery(((Function) o).getElement()); } if (JsUtils.isElement(o)) { - return $(JsUtils. cast(o)); + return new GQuery(JsUtils. cast(o)); } if (o instanceof JsonBuilder) { return new GQuery(((JsonBuilder) o).getDataImpl());