Roo/form/Form.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 09:09:07 +0000 (17:09 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 09:09:07 +0000 (17:09 +0800)
Roo/form/Form.js

index c90c374..2fe9471 100644 (file)
@@ -22,7 +22,7 @@ Roo.form.Form = function(config){
         xitems = config.items;
         delete config.items;
     }
-    
+    this.childForms = [];
     
     Roo.form.Form.superclass.constructor.call(this, null, config);
     this.url = this.url || this.action;
@@ -216,7 +216,7 @@ Roo.extend(Roo.form.Form, Roo.form.BasicForm, {
     
     addForm : function(form){
        
-        this.forms.push(form);
+        this.childForms.push(form);
         form.allItems.each(function (fe) {
             
             if (this.findField(fe.name)) { // already added..