From: Alan Knowles Date: Tue, 19 May 2015 05:35:07 +0000 (+0800) Subject: src/JsRender/NodeToVala.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=59199da351618c0f9fe6509f05533e6292c9c292;p=app.Builder.js src/JsRender/NodeToVala.vala --- diff --git a/src/JsRender/NodeToVala.vala b/src/JsRender/NodeToVala.vala index 03d8e3971..b72c11368 100644 --- a/src/JsRender/NodeToVala.vala +++ b/src/JsRender/NodeToVala.vala @@ -642,12 +642,17 @@ public class JsRender.NodeToVala : Object { this.addLine(this.ipad + "var child_" + "%d".printf(i) + " = new " + ci.xvala_xcls + "( _this " + xargs + ");" ; + // this is only needed if it does not have an ID??? this.ret+= this.ipad + "child_" + "%d".printf(i) +".ref();\n"; // we need to reference increase unnamed children... if (ci.has("* prop")) { - this.ret+= ipad + "this.el." + ci.get("* prop") + " = child_" + "%d".printf(i) + ".el;\n"; + // + this.addLine(ipad + "this.el." + ci.get("* prop") + " = child_" + "%d".printf(i) + ".el;"); continue; + } else { + } + // not sure why we have 'true' in pack?!? if (!ci.has("pack") || ci.get("pack").down() == "false" || ci.get("pack").down() == "true") {