src/JsRender/NodeToJs.vala
[app.Builder.js] / src / JsRender / NodeToJs.vala
index 52e8319..0a3a67f 100644 (file)
@@ -186,7 +186,7 @@ public class JsRender.NodeToJs : Object {
                        var v = this.out_props.get(k);
                        this.node.setLine(this.cur_line, "p",k); //listener
                        this.addLine(this.pad + k + " : " + v + suffix, ',');
-                       
+                       this.node.setLine(this.cur_line, "e", "");
                        
                }
         
@@ -203,7 +203,7 @@ public class JsRender.NodeToJs : Object {
                                var v = this.out_listeners.get(k);
                                this.node.setLine(this.cur_line, "l",k); //listener
                                this.addLine(this.pad + indent_str + k + " : " + v , ',');
-                               
+                               this.node.setLine(this.cur_line, "e", "");
                        }
                        
                        this.closeLine();
@@ -229,7 +229,7 @@ public class JsRender.NodeToJs : Object {
                                this.addLine(this.pad + "'|xns' : '" + addstr + "'", ',');
 
                        }
-                       
+                       this.node.setLine(this.cur_line, "e", "");
                }                        
                // prop arrays...
                
@@ -243,6 +243,7 @@ public class JsRender.NodeToJs : Object {
                        while (pliter.next()) {
                                var addstr = this.mungeChildNew(this.pad + indent_str  + indent_str, pliter.get());
                                this.addLine(this.pad + indent_str + addstr, ',');
+                               this.node.setLine(this.cur_line, "e", "");
                        }
                        this.closeLine();
                        this.addLine(this.pad + "]" , ',');                     
@@ -256,6 +257,7 @@ 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();