- xargs += "," + arg[arg.length -1];
- }
- }
-
- this.ret += this.ipad + "var child_" + "%d".printf(i) + " = new " + ci.xvala_xcls +
- "( _this " + xargs + ");\n" ;
-
- 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";
- continue;
- }
+ xargs += "," + arg[arg.length -1];
+ }
+ }
+ // create the element..
+ 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.addLine(this.ipad + "child_" + "%d".printf(i) +".ref();"); // we need to reference increase unnamed children...
+
+ if (ci.has("* prop")) {
+ this.addLine(ipad + "this.el." + ci.get("* prop") + " = child_" + "%d".printf(i) + ".el;");
+ continue;
+ }
+