src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 04:48:04 +0000 (12:48 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 04:48:04 +0000 (12:48 +0800)
src/JsRender/NodeToVala.vala

index 8d7493b..aa77860 100644 (file)
@@ -225,8 +225,8 @@ public class JsRender.NodeToVala : Object {
                this.addLine(this.pad + "{")
                this.addLine(this.ipad +    "if (_" + this.node.xvala_id  + " == null) {");
                this.addLine(this.ipad +    "    _" + this.node.xvala_id + "= new "+ this.xcls + "();");  // what about args?
-               this.addLine(this.ipad + "}");
-               this.addLine(this.ipad + "return _" + this.node.xvala_id +";");
+               this.addLine(this.ipad +    "}");
+               this.addLine(this.ipad +    "return _" + this.node.xvala_id +";");
                this.addLine(this.pad + "}");
        }