Changeset 14168
- Timestamp:
- 06/26/08 11:52:30 (7 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/form/Form.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/form/Form.js
r14161 r14168 315 315 // of the widgets - also, we only connect if it has a validate 316 316 // function (to avoid too many unneeded connections) 317 this._changeConnections = dojo.filter(this.getDescendants(), "return item.validate").map( 318 function(widget){ 319 return _this.connect(widget, "validate", "_widgetChange"); 320 }); 317 this._changeConnections = dojo.map( 318 dojo.filter(this.getDescendants(), 319 function(item){ return item.validate; } 320 ), 321 function(widget){ 322 return _this.connect(widget, "validate", "_widgetChange"); 323 } 324 ); 325 321 326 // Call the widget change function to update the valid state, in 322 327 // case something is different now.