src/JsRender/Roo.vala
authorAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 07:07:30 +0000 (15:07 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 07:07:30 +0000 (15:07 +0800)
src/JsRender/Roo.vala

index 0ce27e7..f0cedf6 100644 (file)
@@ -851,10 +851,13 @@ namespace JsRender {
                                
                                "Roo.extend(Dynamic.Component, "+ this.tree.fqn() + ", {\n";
                        x.cur_line = ret.split("\n").length;
-                       x.ret = "";
+                       x.mungeOutReset();
                        x.mungeOutProps();
                        x.mungeOutPropObjects(); // Possibly?
                        x.mungeOutPropArrays();  // 
+                       ret += x.ret + "\n" +
+                               "});\n";
+