}
var items = [];
if (config.items) {
- items = this.items;
+ items = config.items;
config.items = [];
}
this.bind(ds);
// supprot items array.
- var _this = this;
+
Roo.each(items, function(e) {
- _this.add(Roo.factory(e));
- });
+ this.add(Roo.factory(e));
+ },this);
};