README.txt
[app.Builder.js] / XObject.js
index a1373f1..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,10 +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...");
+                imports.console.dump(_this);
+                Seed.quit();
+            }
             ret = ch.get(xid);
             
         })