diff options
author | Manolo Carrasco <manolo@apache.org> | 2015-04-22 12:32:23 +0200 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2015-04-22 12:32:23 +0200 |
commit | 178fffc506ebeda6a15bda5ad3bcb21782419385 (patch) | |
tree | 30be8dc2ef278ac54eda2216c2b31a9ecb1c80d3 | |
parent | f3c92755f53a72180469b2220da5d9b017112ec9 (diff) | |
download | gwtquery-178fffc506ebeda6a15bda5ad3bcb21782419385.tar.gz gwtquery-178fffc506ebeda6a15bda5ad3bcb21782419385.zip |
HasAttribute should only check nullity
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); }-*/; /** |