}
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;
}
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);
})