src/JsRender/NodeToJs.vala
[app.Builder.js] / src / JsRender / NodeToJs.vala
index c3184bf..9d93411 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();
@@ -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,8 +225,11 @@ 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 (niter.get_key() == "xns") {
+                               this.addLine(this.pad + "'|xns' : '" + addstr + "'", ',');
+
+                       }
+                       this.node.setLine(this.cur_line, "e", "");
                }                        
                // prop arrays...
                
@@ -240,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 + "]" , ',');                     
@@ -268,6 +272,9 @@ public class JsRender.NodeToJs : Object {
                }
                
                this.node.sortLines();
+               
+               this.node.line_end = this.cur_line;
+               
                return this.ret;
        
        }