From bec695acb2a4138f359ee82cc4d11ec17a42ecad Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Sun, 6 Nov 2011 19:30:04 +0000 Subject: [PATCH] fix issue 110 --- .../src/main/java/com/google/gwt/query/client/GQuery.java | 3 +++ 1 file changed, 3 insertions(+) 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 { */ 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; } -- 2.39.5