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

index 81e871d..45f30d4 100644 (file)
@@ -412,7 +412,7 @@ public class JsRender.NodeToVala : Object {
                        this.addLine( this.ipad + "_this = this;");
                        return;
                }
-               this.ret+= this.ipad + "_this = _owner;\n";
+               this.addLine( this.ipad + "_this = _owner;");
 
                if (this.node.props.has_key("id")
                        &&
@@ -422,7 +422,7 @@ public class JsRender.NodeToVala : Object {
                        && 
                        this.node.xvala_id[0] != '+' 
                        ) {
-                               this.ret+= this.ipad + "_this." + node.xvala_id  + " = this;\n";
+                               this.addLine( this.ipad + "_this." + node.xvala_id  + " = this;");
                   
                }