瀏覽代碼

HasAttribute should only check nullity

tags/gwtquery-project-1.5-beta1
Manolo Carrasco 9 年之前
父節點
當前提交
178fffc506
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java

+ 1
- 1
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);
}-*/;

/**

Loading…
取消
儲存