// alert(cfg[p]);
// }
- } catch(e) { console.log('Error evaluating: ' + cfg[p] + "\r\n" + JSON.stringify(e)); };
+ } catch(e) {
+ console.log('Error evaluating: ' + cfg[p] + "\r\n" + JSON.stringify(e));
+ };
delete cfg[p];
}
+ if (cfg.xtype && cfg.xtype.match(/^Roo\./) && !cfg.xns) {
+ // xtype contains full path..
+ var bits = cfg.xtype.split('.');
+ bits.shift(); // remove roo..
+ cfg.xtype = bits.pop(); // get the last bit..
+ cfg.xns = Roo;
+ while (bits.length) {
+ cfg.xns = cfg.xns[bits.shift()];
+ }
+
+
+ }
+
// we can overlay some event handlers here..
cfg.listeners = cfg.listeners || {};