src/JsRender/NodeToJs.vala
authorAlan Knowles <alan@roojs.com>
Fri, 27 May 2016 07:54:32 +0000 (15:54 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 May 2016 07:54:32 +0000 (15:54 +0800)
src/JsRender/NodeToJs.vala

index 39de56e..9b50c98 100644 (file)
@@ -248,9 +248,8 @@ public class JsRender.NodeToJs : Object {
                        var cniter = this.out_children.list_iterator();
                        while (cniter.next()) {
                                suffix = cniter.has_next()  ? "," : "";
-                               this.addMultiLine(this.pad + indent_str +
-                                       this.mungeChildNew(this.pad + indent_str  + indent_str, cniter.get()) + suffix
-                               );
+                               var addstr = this.mungeChildNew(this.pad + indent_str  + indent_str, cniter.get());
+                               this.addLine(this.pad + indent_str + addstr, ',');
                                
                        }
                        this.closeLine();