}
if (!this.el && typeof(this.xtype) == 'object') {
+
XObject.log("obj?" + XObject.keys(this.config).join(','));
- this.el = new (this.xtype)(this.config);
+ try {
+ this.el = new (this.xtype)(this.config);
+ } catch(e) {
+ print(JSON.stringify(e,null,4));
+ print(JSON.stringify(this.config,null,4));
+ print(e.stack);
+
+ throw {
+ name: "ArgumentError",
+ message :"Error creating object from xtype(object)"
+ };
+ }
+
}
//print(this.el);
if (!this.el) {
print('missing el?');
- print(this.cfg);
- print(this.init);
- }
+ print(fn);
+ print(JSON.stringify(this.cfg));
+ }
if (typeof(Seed) != 'undefined') {
}
XObject.log("TRYING BASE OBJECT : " + gname);
+
// in the situation where we have been called and there is a base object
// defining the behavior..
// then we should copy the prototypes from the base object into this..