src/JsRender/NodeToJs.vala
[app.Builder.js] / src / JsRender / NodeToJs.vala
index 9d93411..e8266c7 100644 (file)
@@ -215,7 +215,7 @@ public class JsRender.NodeToJs : Object {
                
                
                
-               
+               this.node.line_end = this.cur_line;
                
                // * prop
 
@@ -257,12 +257,13 @@ public class JsRender.NodeToJs : Object {
                                suffix = cniter.has_next()  ? "," : "";
                                var addstr = this.mungeChildNew(this.pad + indent_str  + indent_str, cniter.get());
                                this.addLine(this.pad + indent_str + addstr, ',');
+                               this.node.setLine(this.cur_line, "e", "");
                                
                        }
                        this.closeLine();
                        this.addLine(this.pad +   "]",',');
                }
-               
+               this.node.setLine(this.cur_line, "e", "");
                this.closeLine();
                if (this.node.props.has_key("* xinclude")) {
                        this.addLine(spad + "})",0);
@@ -273,7 +274,7 @@ public class JsRender.NodeToJs : Object {
                
                this.node.sortLines();
                
-               this.node.line_end = this.cur_line;
+               
                
                return this.ret;