From: Alan Knowles Date: Tue, 19 May 2015 04:43:20 +0000 (+0800) Subject: src/JsRender/NodeToVala.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=92bd1ff18667e88dfe493d7f1fa071b49a824d95;p=app.Builder.js src/JsRender/NodeToVala.vala --- diff --git a/src/JsRender/NodeToVala.vala b/src/JsRender/NodeToVala.vala index 0e68c24e8..e7a30c54d 100644 --- a/src/JsRender/NodeToVala.vala +++ b/src/JsRender/NodeToVala.vala @@ -183,11 +183,12 @@ public class JsRender.NodeToVala : Object { if (this.depth > 0) { return; } - // Global Vars.. - //this.ret += this.inpad + "public static " + this.xcls + " " + this.node.xvala_id+ ";\n\n"; + // Global Vars.. + //this.ret += this.inpad + "public static " + this.xcls + " " + this.node.xvala_id+ ";\n\n"; - - this.ret += this.inpad + "static " + this.xcls + " _" + this.node.xvala_id+ ";\n\n"; + this.addLine("%sstatic %s _%s;".printf(this.inpad, this.xcls, this.node.xvala_id)); + this.addLine(""); + //this.ret += this.inpad + "static " + this.xcls + " _" + this.node.xvala_id+ ";\n\n"; }