src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 05:10:17 +0000 (13:10 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 05:10:17 +0000 (13:10 +0800)
src/JsRender/NodeToVala.vala

index b68b987..ad2e007 100644 (file)
@@ -498,7 +498,8 @@ public class JsRender.NodeToVala : Object {
                                args += v;
 
                        }
-                       this.ret += this.ipad + "this.el = new " + cls + "( "+ string.joinv(", ",args) + " );\n" ;
+                       this.node.proplines.set("* xtype", this.curline);
+                       this.addLine(this.ipad + "this.el = new " + cls + "( "+ string.joinv(", ",args) + " );") ;
                        return;
                        
                }