this.items.each(function(f){
f.clearInvalid();
});
- if (this.childForms) {
- Roo.each(this.childForms, function (f) {
- f.clearInvalid();
- });
- }
+
+ Roo.each(this.childForms || [], function (f) {
+ f.clearInvalid();
+ });
+
return this;
},
this.items.each(function(f){
f.reset();
});
- if (this.childForms) {
- Roo.each(this.childForms, function (f) {
- f.reset();
- });
+
+ Roo.each(this.childForms || [], function (f) {
+ f.reset();
+ });
}
return this;