README.txt
[app.Builder.js] / XObject.js
index b3f1c88..e808c0a 100644 (file)
@@ -233,7 +233,7 @@ XObject.prototype = {
         }
         if (typeof(item.pack) == 'function') {
             // parent, child
-            item.pack.apply(o, [ o , o.items[i] ]);
+            item.pack.apply(item, [ this , item  ]);
             item.parent = this;
             return;
         }
@@ -317,15 +317,16 @@ XObject.prototype = {
             return ret;
         }
         // iterate children.
+        var _this = this;
         this.items.forEach(function(ch) {
             if (ret) {
                 return;
             }
             if (!ch.get) {
                 print("invalid item...");
-                console.dump(_this);
+                imports.console.dump(_this);
                 Seed.quit();
-               }
+            }
             ret = ch.get(xid);
             
         })