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

index 0e68c24..e7a30c5 100644 (file)
@@ -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";
                                
                                
        }