From: Alan Knowles Date: Mon, 30 May 2016 08:17:33 +0000 (+0800) Subject: src/JsRender/NodeToJs.vala X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=1768099f0713903b81575f712ccc3b52c63d4840 src/JsRender/NodeToJs.vala --- diff --git a/src/JsRender/NodeToJs.vala b/src/JsRender/NodeToJs.vala index 6b8676fad..52e8319e7 100644 --- a/src/JsRender/NodeToJs.vala +++ b/src/JsRender/NodeToJs.vala @@ -213,7 +213,7 @@ public class JsRender.NodeToJs : Object { //------- at this point it is the end of the code relating directly to the object.. - this.node.line_end = this.cur_line; + @@ -225,10 +225,10 @@ public class JsRender.NodeToJs : Object { var addstr = this.mungeChildNew(this.pad + indent_str, niter.get_value()); this.node.setLine(this.cur_line, "p",niter.get_key()); this.addLine(this.pad + niter.get_key() + " : " + addstr, ','); - if (iter.get_key() == "xns") { - this.addLine(this.pad + "'|xns' : '" + addstr + "'", ','); + if (niter.get_key() == "xns") { + this.addLine(this.pad + "'|xns' : '" + addstr + "'", ','); - } + } } // prop arrays... @@ -271,6 +271,9 @@ public class JsRender.NodeToJs : Object { } this.node.sortLines(); + + this.node.line_end = this.cur_line; + return this.ret; }