]> source.dussan.org Git - gwtquery.git/commitdiff
fix issue 110
authorJulien Dramaix <julien.dramaix@gmail.com>
Sun, 6 Nov 2011 19:30:04 +0000 (19:30 +0000)
committerJulien Dramaix <julien.dramaix@gmail.com>
Sun, 6 Nov 2011 19:30:04 +0000 (19:30 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 28646ea645e640ddca415fc48f46c6238423ae23..100b06480f14c04cb9a3e7a00ba492995f5a2bf8 100644 (file)
@@ -1081,7 +1081,10 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
    */\r
   public GQuery attr(String key, Object value) {\r
     assert key != null : "key cannot be null";\r
+    assert !"$H".equalsIgnoreCase(key) : "$H is a GWT reserved attribute. Changing its value will break your application.";\r
+    \r
     getAttributeImpl().setAttribute(this, key, value);\r
+    \r
     return this;\r
   }\r
 \r