From 797ce9bd21faa8c7c9d1fd043aac033a60ade0cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Maxime=20M=C3=A9riouma-Caron?= Date: Thu, 26 Nov 2015 03:00:25 -0500 Subject: [PATCH] Fix tests --- .../src/main/java/com/google/gwt/query/client/GQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.5