]> source.dussan.org Git - gwtquery.git/commitdiff
properties toJsonString should not export gwt hashCodes. Fixes tests
authorManolo Carrasco <manolo@apache.org>
Fri, 23 Dec 2011 08:25:26 +0000 (08:25 +0000)
committerManolo Carrasco <manolo@apache.org>
Fri, 23 Dec 2011 08:25:26 +0000 (08:25 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java

index d7f4d90b99f35b38f10259f88b84095c9275609e..cb7cbfb7d43da084926fd39651651a6cf8a96fc5 100644 (file)
@@ -141,6 +141,10 @@ public class Properties extends JavaScriptObject {
     \r
     for (String k : keys()){\r
       String ky = k.matches("\\d+") ? k : "\"" + k + "\"";\r
+      // We do not have to restore gwt hashCodes.  \r
+      if (k.equals("$H")) {\r
+        continue;\r
+      }\r
       JsCache o = getArray(k).cast();\r
       if (o != null) {\r
         ret += ky + ":[";\r