aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-12-23 08:25:26 +0000
committerManolo Carrasco <manolo@apache.org>2011-12-23 08:25:26 +0000
commitd2a551a8a322d1e24a20332f14e4b30c41adacfd (patch)
tree4dcceb430665facb65e55cdf7c16f44fb61c13b5
parent9f4543c5a606c138a011344d235cc683d5de3ffe (diff)
downloadgwtquery-d2a551a8a322d1e24a20332f14e4b30c41adacfd.tar.gz
gwtquery-d2a551a8a322d1e24a20332f14e4b30c41adacfd.zip
properties toJsonString should not export gwt hashCodes. Fixes tests
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java
index d7f4d90b..cb7cbfb7 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java
@@ -141,6 +141,10 @@ public class Properties extends JavaScriptObject {
for (String k : keys()){
String ky = k.matches("\\d+") ? k : "\"" + k + "\"";
+ // We do not have to restore gwt hashCodes.
+ if (k.equals("$H")) {
+ continue;
+ }
JsCache o = getArray(k).cast();
if (o != null) {
ret += ky + ":[";