diff options
author | Julien Dramaix <julien.dramaix@gmail.com> | 2011-11-06 19:30:04 +0000 |
---|---|---|
committer | Julien Dramaix <julien.dramaix@gmail.com> | 2011-11-06 19:30:04 +0000 |
commit | bec695acb2a4138f359ee82cc4d11ec17a42ecad (patch) | |
tree | 097eda27dd31098de3cf5a221dc859eb83de4adc | |
parent | 559ecad2d0d68f7fcb590c73de83eaf6d86a25a2 (diff) | |
download | gwtquery-bec695acb2a4138f359ee82cc4d11ec17a42ecad.tar.gz gwtquery-bec695acb2a4138f359ee82cc4d11ec17a42ecad.zip |
fix issue 110
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 28646ea6..100b0648 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -1081,7 +1081,10 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> { */
public GQuery attr(String key, Object value) {
assert key != null : "key cannot be null";
+ assert !"$H".equalsIgnoreCase(key) : "$H is a GWT reserved attribute. Changing its value will break your application.";
+
getAttributeImpl().setAttribute(this, key, value);
+
return this;
}
|