src/JsRender/NodeToJs.vala
authorAlan Knowles <alan@roojs.com>
Mon, 30 May 2016 07:25:01 +0000 (15:25 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 30 May 2016 07:25:01 +0000 (15:25 +0800)
src/JsRender/NodeToJs.vala

index 7825b40..be490a3 100644 (file)
@@ -199,9 +199,9 @@ public class JsRender.NodeToJs : Object {
                                
                                var k = iter.get();
                                var v = this.out_listeners.get(k);
-                               this.addLine(this.pad + indent_str + k + " : ", 0);
                                this.node.setLine(this.cur_line, "l",k); //listener
-                               this.addLine( v,',');
+                               this.addLine(this.pad + indent_str + k + " : " + v , ',');
+                               
                        }
                        
                        this.closeLine();
@@ -558,9 +558,6 @@ public class JsRender.NodeToJs : Object {
                
                                        this.out_props.set("'|xns'", "'" +  nstr + "'" );
                                }
-               
-
-               }