From: Manolo Carrasco Date: Wed, 22 Apr 2015 10:32:23 +0000 (+0200) Subject: HasAttribute should only check nullity X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=178fffc506ebeda6a15bda5ad3bcb21782419385;p=gwtquery.git HasAttribute should only check nullity --- 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); }-*/; /**