]> source.dussan.org Git - gwtquery.git/commitdiff
HasAttribute should only check nullity
authorManolo Carrasco <manolo@apache.org>
Wed, 22 Apr 2015 10:32:23 +0000 (12:32 +0200)
committerManolo Carrasco <manolo@apache.org>
Wed, 22 Apr 2015 10:32:23 +0000 (12:32 +0200)
gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java

index 7817bcab23282fc66bd6414d7179a9eea7b96c0f..a8e549952b035e05e2c58ea4be6887024077dea1 100644 (file)
@@ -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);
   }-*/;
 
   /**