* @param {Object} config Configuration options
*/
Roo.form.BasicForm = function(el, config){
+ this.allItems = [];
+ this.childForms = [];
Roo.apply(this, config);
/*
* The Roo.form.Field items in this form.
* @type MixedCollection
*/
+
+
this.items = new Roo.util.MixedCollection(false, function(o){
return o.id || (o.id = Roo.id());
});
childForms : false,
/**
- * allFields - full list of fields.
+ * allItems - full list of fields.
* @type {Array}
*/
- allFields : false,
+ allItems : false,
/**
* By default wait messages are displayed with Roo.MessageBox.wait. You can target a specific
addForm : function(form){
this.childForms.push(form);
- form.allItems.each(function (fe) {
+ Roo.each(form.allItems, function (fe) {
if (this.findField(fe.name)) { // already added..
return;
xitems = config.items;
delete config.items;
}
- this.childForms = [];
+
Roo.form.Form.superclass.constructor.call(this, null, config);
this.url = this.url || this.action;