From 6349862f33bf3112ed9c5f90823a00dcc17cc42a Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Tue, 20 Mar 2012 07:59:01 +0000 Subject: [PATCH] fix testAttr_Issue97 in prod-mode --- .../com/google/gwt/query/client/impl/AttributeImpl.java | 8 ++++++-- 1 file 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); + } } } } -- 2.39.5