From d2a551a8a322d1e24a20332f14e4b30c41adacfd Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Fri, 23 Dec 2011 08:25:26 +0000 Subject: [PATCH] properties toJsonString should not export gwt hashCodes. Fixes tests --- .../src/main/java/com/google/gwt/query/client/Properties.java | 4 ++++ 1 file changed, 4 insertions(+) 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 + ":["; -- 2.39.5