aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2012-03-20 07:59:01 +0000
committerManolo Carrasco <manolo@apache.org>2012-03-20 07:59:01 +0000
commit6349862f33bf3112ed9c5f90823a00dcc17cc42a (patch)
tree8a05354bd8aad08d72293c8cdd3ac9334559a6db
parentd95b74117fe8ad9bd0d95960eaacfff74d14aa72 (diff)
downloadgwtquery-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.java8
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);
+ }
}
}
}