public/javascripts/yui/datatable/datatable.js
function() {
    var allOptions = this.dropdown.options,
        i=0, j=allOptions.length;

    // Look for multi-select selections
    if(lang.isArray(this.value)) {
        var allValues = this.value,
            m=0, n=allValues.length,
            hash = {};
        // Reset all selections and stash options in a value hash
        for(; i<j; i++) {
            allOptions[i].selected = false;
            hash[allOptions[i].value] = allOptions[i];
        }
        for(; m<n; m++) {
            if(hash[allValues[m]]) {
                hash[allValues[m]].selected = true;
            }
        }
    }
    // Only need to look for a single selection
    else {
        for(; i<j; i++) {
            if(this.value === allOptions[i].value) {
                allOptions[i].selected = true;
            }
        }
    }
}
function() {
    var allOptions = this.dropdown.options,
        i=0, j=allOptions.length;

    // Look for multi-select selections
    if(lang.isArray(this.value)) {
        var allValues = this.value,
            m=0, n=allValues.length,
            hash = {};
        // Reset all selections and stash options in a value hash
        for(; i<j; i++) {
            allOptions[i].selected = false;
            hash[allOptions[i].value] = allOptions[i];
        }
        for(; m<n; m++) {
            if(hash[allValues[m]]) {
                hash[allValues[m]].selected = true;
            }
        }
    }
    // Only need to look for a single selection
    else {
        for(; i<j; i++) {
            if(this.value === allOptions[i].value) {
                allOptions[i].selected = true;
            }
        }
    }
}
function ( ) { var allOptions = this . dropdown . options , i = 0 , j = allOptions . length ; // Look for multi-select selections if ( lang . isArray ( this . value ) ) { var allValues = this . value , m = 0 , n = allValues . length , hash = { } ; // Reset all selections and stash options in a value hash for ( ; i < j ; i ++ ) { allOptions [ i ] . selected = false ; hash [ allOptions [ i ] . value ] = allOptions [ i ] ; } for ( ; m < n ; m ++ ) { if ( hash [ allValues [ m ] ] ) { hash [ allValues [ m ] ] . selected = true ; } } } // Only need to look for a single selection else { for ( ; i < j ; i ++ ) { if ( this . value === allOptions [ i ] . value ) { allOptions [ i ] . selected = true ; } } } }
Resets DropdownCellEditor UI to initial state.

@method resetForm
Resets DropdownCellEditor UI to initial state .