Changeset 14168

Show
Ignore:
Timestamp:
06/26/08 11:52:30 (7 months ago)
Author:
doughays
Message:

Fixes #7064. IE array .map function not working, so call dojo.map directly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/Form.js

    r14161 r14168  
    315315                        // of the widgets - also, we only connect if it has a validate 
    316316                        // 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 
    321326                        // Call the widget change function to update the valid state, in  
    322327                        // case something is different now.