lib/Ext/picker/Picker.js
function(config) {
        if (config) {
            if (Ext.isBoolean(config)) {
                config = {};
            }

            if (typeof config == "string") {
                config = {
                    text: config
                };
            }

            Ext.applyIf(config, {
                ui: 'action',
                align: 'right',
                text: 'Done'
            });
        }

        return Ext.factory(config, 'Ext.Button', this.getDoneButton());
    }
function(config) {
        if (config) {
            if (Ext.isBoolean(config)) {
                config = {};
            }

            if (typeof config == "string") {
                config = {
                    text: config
                };
            }

            Ext.applyIf(config, {
                ui: 'action',
                align: 'right',
                text: 'Done'
            });
        }

        return Ext.factory(config, 'Ext.Button', this.getDoneButton());
    }
function ( config ) { if ( config ) { if ( Ext . isBoolean ( config ) ) { config = { } ; } if ( typeof config == "string" ) { config = { text : config } ; } Ext . applyIf ( config , { ui : 'action' , align : 'right' , text : 'Done' } ) ; } return Ext . factory ( config , 'Ext.Button' , this . getDoneButton ( ) ) ; }
Updates the {@link #doneButton} configuration. Will change it into a button when appropriate, or just update the text if needed.
@param {Object} config
@return {Object}
Updates the {