diff options
author | Manolo Carrasco <manolo@apache.org> | 2012-03-20 07:59:01 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2012-03-20 07:59:01 +0000 |
commit | 6349862f33bf3112ed9c5f90823a00dcc17cc42a (patch) | |
tree | 8a05354bd8aad08d72293c8cdd3ac9334559a6db | |
parent | d95b74117fe8ad9bd0d95960eaacfff74d14aa72 (diff) | |
download | gwtquery-6349862f33bf3112ed9c5f90823a00dcc17cc42a.tar.gz gwtquery-6349862f33bf3112ed9c5f90823a00dcc17cc42a.zip |
fix testAttr_Issue97 in prod-mode
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java index b991c5e8..29aeafa9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java @@ -171,8 +171,12 @@ public class AttributeImpl { continue; } e.removeAttribute(key); - if (BOOLEAN_ATTR_REGEX.test(key) && JsUtils.hasProperty(e, key)) { - e.setPropertyBoolean(key, false); + if (JsUtils.hasProperty(e, key)) { + if (BOOLEAN_ATTR_REGEX.test(key)) { + e.setPropertyBoolean(key, false); + } else { + e.setPropertyObject(key, null); + } } } } |