incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r600584 - /incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/experimental/EctScriptEngine.java
Date Mon, 03 Dec 2007 16:19:51 GMT
Author: bdelacretaz
Date: Mon Dec  3 08:19:50 2007
New Revision: 600584

URL: http://svn.apache.org/viewvc?rev=600584&view=rev
Log:
SLING-114, JSON escaping was wrong for currentNode initialization

Modified:
    incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/experimental/EctScriptEngine.java

Modified: incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/experimental/EctScriptEngine.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/experimental/EctScriptEngine.java?rev=600584&r1=600583&r2=600584&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/experimental/EctScriptEngine.java
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/experimental/EctScriptEngine.java
Mon Dec  3 08:19:50 2007
@@ -94,10 +94,9 @@
             final JsonItemWriter j = new JsonItemWriter(null);
             final int maxRecursionLevels = 1;
             w.println("<script language='javascript'>");
-            w.print("var str='");
+            w.print("var currentNode=");
             j.dump(n, w, maxRecursionLevels);
-            w.println("';");
-            w.print("eval(\"var currentNode=\" + str );");
+            w.println(";");
             w.println("</script>");
             w.println("</head><body onLoad=\"ectOnLoad()\">");
             



Mime
View raw message