this.dialogroot = Roo.get( document.body).createChild({
id : cfg.id
});
-
+
this.dialog = new Roo[cfg.xtype](this.dialogroot, cfg);
//this.dialog.el.on('click', this.panelClick, this);
this.dialog.show();
}
});
}
- this.layoutbase.addxtype( cfg );
-
+ try {
+ console.log("ADDING CFG");
+ this.layoutbase.addxtype( cfg );
+ } catch (e) {
+ console.log("GOT ERROR?");
+ console.log(e);
+ console.log(typeof(e));
+
+ console.log(this.dump(e));
+ }
},
}
}
+ if (cfg.xtype) {
+ if (!cfg.xns || typeof(cfg.xns[cfg.xtype]) == 'undefined') {
+ throw "Invalid Xtype " + cfg.xtreepath;
+ }
+ }
// we can overlay some event handlers here..
cfg.listeners = cfg.listeners || {};