resources/RooUsage.txt
[app.Builder.js] / src / JsRender / NodeToJs.vala
index 2a8e061..1bdb3b9 100644 (file)
@@ -177,7 +177,7 @@ public class JsRender.NodeToJs : Object {
                // work out remaining items...
         
                // output xns / xtype first..
-               if (this.out_props.has_key("xtype") {
+               if (this.out_props.has_key("xtype")) {
                        var v = this.out_props.get("xtype");
                        this.node.setLine(this.cur_line, "p","xtype"); 
                        this.addLine(this.pad + "xtype" + " : " + v + suffix, ',');
@@ -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", "");
                        
                }
@@ -225,12 +224,13 @@ public class JsRender.NodeToJs : Object {
                
                //------- at this point it is the end of the code relating directly to the object..
                
-               if (this.out_props.has_key("xns") {
+               if (this.out_props.has_key("xns")) {
                        var v = this.out_props.get("xns");
                        this.node.setLine(this.cur_line, "p","xns"); 
                        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;
@@ -241,6 +241,7 @@ public class JsRender.NodeToJs : Object {
 
                while(niter.next()) {
                        var addstr = this.mungeChildNew(this.pad + indent_str, niter.get_value());
+                       //print("add str: %s\n", addstr);
                        this.node.setLine(this.cur_line, "p",niter.get_key());
                        this.addLine(this.pad + niter.get_key() + " : " + addstr, ',');
                        
@@ -251,7 +252,7 @@ public class JsRender.NodeToJs : Object {
                var piter = this.out_props_array.map_iterator();
 
                while(piter.next()) {
-                       this.node.setLine(this.cur_line, "p",niter.get_key());
+                       this.node.setLine(this.cur_line, "p",piter.get_key());
                        this.addLine(this.pad + piter.get_key() + " : [", 0);
                        
                        var pliter = piter.get_value().list_iterator();