Merge branch 'master' of http://git.roojs.com/app.Builder.js
[app.Builder.js] / src / JsRender / NodeToJs.vala
index 19791a4..ee2075d 100644 (file)
@@ -189,15 +189,14 @@ public class JsRender.NodeToJs : Object {
  
                         
                        var k = iter.get();
-                       if (k == "xns" || x == "xtype") {
+                       if (k == "xns" || k == "xtype") {
                                continue;
                        }
 
                        var v = this.out_props.get(k);
                        this.node.setLine(this.cur_line, "p",k); 
                        this.addLine(this.pad + k + " : " + v + suffix, ',');
-                       this.node.setLine(this.cur_line, "p","| xns" ); 
-                       
+                        
                        this.node.setLine(this.cur_line, "e", "");
                        
                }
@@ -231,6 +230,7 @@ public class JsRender.NodeToJs : Object {
                        this.addLine(this.pad + "xns" + " : " + v + suffix, ',');
                        this.node.setLine(this.cur_line, "p","| xns"); 
                        this.addLine(this.pad + "'|xns' : '" + v + "'", ',');
+                       this.node.setLine(this.cur_line, "e", "");
                }
                
                this.node.line_end = this.cur_line;