git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.2.1 - Released 04/27/2010
[extjs.git]
/
src
/
widgets
/
form
/
BasicForm.js
diff --git
a/src/widgets/form/BasicForm.js
b/src/widgets/form/BasicForm.js
index
7aee4db
..
c11d998
100644
(file)
--- a/
src/widgets/form/BasicForm.js
+++ b/
src/widgets/form/BasicForm.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.2.
0
+ * Ext JS Library 3.2.
1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
@@
-561,7
+561,7
@@
myFormPanel.getForm().submit({
if (f.dataIndex == id || f.id == id || f.getName() == id) {
field = f;
return false;
if (f.dataIndex == id || f.id == id || f.getName() == id) {
field = f;
return false;
- } else if (f.isComposite) {
+ } else if (f.isComposite
&& f.rendered
) {
return f.items.each(findMatchingField);
}
}
return f.items.each(findMatchingField);
}
}
@@
-737,6
+737,13
@@
myFormPanel.getForm().submit({
return this;
},
return this;
},
+ /**
+ * Removes all fields from the collection that have been destroyed.
+ */
+ cleanDestroyed : function() {
+ this.items.filterBy(function(o) { return !!o.isDestroyed; }).each(this.remove, this);
+ },
+
/**
* Iterates through the {@link Ext.form.Field Field}s which have been {@link #add add}ed to this BasicForm,
* checks them for an id attribute, and calls {@link Ext.form.Field#applyToMarkup} on the existing dom element with that id.
/**
* Iterates through the {@link Ext.form.Field Field}s which have been {@link #add add}ed to this BasicForm,
* checks them for an id attribute, and calls {@link Ext.form.Field#applyToMarkup} on the existing dom element with that id.