aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-04-22 12:32:23 +0200
committerManolo Carrasco <manolo@apache.org>2015-04-22 12:32:23 +0200
commit178fffc506ebeda6a15bda5ad3bcb21782419385 (patch)
tree30be8dc2ef278ac54eda2216c2b31a9ecb1c80d3
parentf3c92755f53a72180469b2220da5d9b017112ec9 (diff)
downloadgwtquery-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.java2
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);
}-*/;
/**