From 629c65f0522bda8a5609af0c027e56290706cbe0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 19 May 2015 13:05:18 +0800 Subject: [PATCH] src/JsRender/NodeToVala.vala --- src/JsRender/NodeToVala.vala | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/JsRender/NodeToVala.vala b/src/JsRender/NodeToVala.vala index c3d629671..26f550ce0 100644 --- a/src/JsRender/NodeToVala.vala +++ b/src/JsRender/NodeToVala.vala @@ -389,15 +389,16 @@ public class JsRender.NodeToVala : Object { } if (this.depth < 1) { - this.node.ctorline = this.curline; - this.addLine(this.pad + "public " + this.xcls + "(" + - cargs_str +")\n" + this.pad + "{"); + + // top level - does not pass the top level element.. + this.addLine(this.pad + "public " + this.xcls + "(" + cargs_str +")") + this.addLine(this.pad + "{"); } else { - //code - - this.ret+= this.pad + "public " + this.xcls + "(" + - this.top.xcls + " _owner " + cargs_str + ")\n" + this.pad + "{\n"; + + + this.addLine(this.pad + "public " + this.xcls + "(" + this.top.xcls + " _owner " + cargs_str + ")"); + this.addLine(this.pad + "{"); } -- 2.39.2