X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..b37ceabb82336ee82757cd32efe353cfab8ec267:/src/widgets/form/Form.js diff --git a/src/widgets/form/Form.js b/src/widgets/form/Form.js index cae434b3..57f47364 100644 --- a/src/widgets/form/Form.js +++ b/src/widgets/form/Form.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.2.0 + * Ext JS Library 3.2.2 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license @@ -270,6 +270,9 @@ Ext.FormPanel = Ext.extend(Ext.Panel, { // If a Container, its already destroyed by the time it gets here. Remove any references to destroyed fields. }else if (c.findBy){ Ext.each(c.findBy(this.isField), this.form.remove, this.form); + if (c.isDestroyed) { + this.form.cleanDestroyed(); + } } } }, @@ -350,4 +353,4 @@ Ext.FormPanel = Ext.extend(Ext.Panel, { }); Ext.reg('form', Ext.FormPanel); -Ext.form.FormPanel = Ext.FormPanel; \ No newline at end of file +Ext.form.FormPanel = Ext.FormPanel;