function userSwitchConfig(username, type, status){
            status = !!realValue(status);
            return {
                config: {
                    element: {
                        name: type,
                        className: 'user-' + type,
                        checked: status,
                        title: username + ':' + type
                    },
                    onText: '',
                    offText: ''
                }
            }
        }
// common config function for DOM and Spawner elements
common config function for DOM and Spawner elements
common config function for DOM and Spawner elements
function userSwitchConfig(username, type, status){
            status = !!realValue(status);
            return {
                config: {
                    element: {
                        name: type,
                        className: 'user-' + type,
                        checked: status,
                        title: username + ':' + type
                    },
                    onText: '',
                    offText: ''
                }
            }
        }
function userSwitchConfig ( username , type , status ) { status = ! ! realValue ( status ) ; return { config : { element : { name : type , className : 'user-' + type , checked : status , title : username + ':' + type } , onText : '' , offText : '' } } }
common config function for DOM and Spawner elements
common config function for DOM and Spawner elements