cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r933087 - /cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
Date Mon, 12 Apr 2010 03:59:56 GMT
Author: dkulp
Date: Mon Apr 12 03:59:56 2010
New Revision: 933087

URL: http://svn.apache.org/viewvc?rev=933087&view=rev
Log:
[CXF-2761] Reset item to null
Patch from Bjorn Hauser applied

Modified:
    cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java

Modified: cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java?rev=933087&r1=933086&r2=933087&view=diff
==============================================================================
--- cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
(original)
+++ cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/types/SchemaJavascriptBuilder.java
Mon Apr 12 03:59:56 2010
@@ -659,6 +659,7 @@ public class SchemaJavascriptBuilder {
                              + localName + "'));");
         }
         utils.appendLine("newobject." + accessorName + "(item);");
+        utils.appendLine("var item = null;");
         if (!itemInfo.isArray()) {
             utils.startIf("curElement != null");
             utils.appendLine("curElement = cxfjsutils.getNextElementSibling(curElement);");



Mime
View raw message