JsRender/Gtk.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 21 May 2014 13:26:27 +0000 (21:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 21 May 2014 13:26:27 +0000 (21:26 +0800)
JsRender/Gtk.js

index 96f3e97..3e41133 100644 (file)
@@ -443,6 +443,8 @@ Gtk = XObject.define(
                     var ci = item.items[i];
                     var packing = ci.pack ? ci.pack.split(',') : [ 'add' ];
                     var pack = packing.shift();
+                    strbuilder(ipad + "var child_" + i + " = new " + ci.xvala_xcls + "();\n" )
+                    
                     strbuilder(ipad + "this." + pack + " (  new " + ci.xvala_xcls + "()" +
                                (packing.length ? ", " + packing.join(",") : "") + " );\n"
                             );