]> source.dussan.org Git - gwtquery.git/commitdiff
fix testAttr_Issue97 in prod-mode
authorManolo Carrasco <manolo@apache.org>
Tue, 20 Mar 2012 07:59:01 +0000 (07:59 +0000)
committerManolo Carrasco <manolo@apache.org>
Tue, 20 Mar 2012 07:59:01 +0000 (07:59 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/impl/AttributeImpl.java

index b991c5e893cd2b662202c3ab2bc512af54ca9524..29aeafa99217642092787f1f4fd0ec3d674732a1 100644 (file)
@@ -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);
+        }
       }
     }
   }