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

index 8676b1f..50001ef 100644 (file)
@@ -214,11 +214,9 @@ public class JsRender.NodeToVala : Object {
                // class xxx {   WrappedGtk  el; }
                this.addLine(inpad + "public class " + this.xcls + " : Object \n" + this.inpad + "{");
                this.node.line = this.cur_line;
-               
-               
+                
                this.addLine(this.pad + "public " + this.cls + " el;");
-
-                 
                this.addLine(this.pad + "private " + this.top.xcls + "  _this;)";
                this.addLine();
                        
@@ -309,7 +307,8 @@ public class JsRender.NodeToVala : Object {
                        }
                                
                        if (vv[0] == "@") {
-                               this.ret += this.pad + "public signal" + k.substring(1)  + " "  + iter.get_value() + ";\n";
+                               this.addLine(this.pad + "public signal" + k.substring(1)  + " "  + iter.get_value() + ";");
+                               
                                this.ignore(k);
                                continue;
                        }