From 178fffc506ebeda6a15bda5ad3bcb21782419385 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 22 Apr 2015 12:32:23 +0200 Subject: [PATCH] HasAttribute should only check nullity --- .../src/main/java/com/google/gwt/query/client/js/JsUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java index 7817bcab..a8e54995 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java @@ -342,7 +342,7 @@ public class JsUtils { * present. */ public static native boolean hasAttribute(Element o, String name) /*-{ - return !!(o && o.getAttribute(name)); + return !!(o && o.getAttribute(name) !== null); }-*/; /** -- 2.39.5