Browse Source

HasAttribute should only check nullity

tags/gwtquery-project-1.5-beta1
Manolo Carrasco 9 years ago
parent
commit
178fffc506

+ 1
- 1
gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java View 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);
}-*/;

/**

Loading…
Cancel
Save