- cfg.id = typeof(cfg.id) == 'undefined' ? Roo.id() : cfg.id; // don't normally use this..
- this.cm.lookup[cfg.id] = cfg;
- if (typeof(pos) == 'undefined' || pos >= this.cm.config.length) {
- this.cm.config.push(cfg);
- this.view.refresh(true);
- return;
+
+ for (var i =0;i< ar.length;i++) {
+ var cfg = ar[i];
+ cfg.id = typeof(cfg.id) == 'undefined' ? Roo.id() : cfg.id; // don't normally use this..
+ this.cm.lookup[cfg.id] = cfg;