function(defaultValue) {
                // returns the input or element value, as string
                defaultValue = defaultValue || this.options.defaultValue;
                var val = defaultValue;

                if (this.hasInput()) {
                    val = this.input.val();
                } else {
                    val = this.element.data('pickerValue');
                    val = this.options.itemProperty ? val[this.options.itemProperty] : val;
                }
                if ((val === undefined) || (val === '') || (val === null) || (val === false)) {
                    // if not defined or empty, return default
                    val = defaultValue;
                }
                return val;
            }
function(defaultValue) {
                
                defaultValue = defaultValue || this.options.defaultValue;
                var val = defaultValue;

                if (this.hasInput()) {
                    val = this.input.val();
                } else {
                    val = this.element.data('pickerValue');
                    val = this.options.itemProperty ? val[this.options.itemProperty] : val;
                }
                if ((val === undefined) || (val === '') || (val === null) || (val === false)) {
                    
                    val = defaultValue;
                }
                return val;
            }
function ( defaultValue ) { // returns the input or element value, as string defaultValue = defaultValue || this . options . defaultValue ; var val = defaultValue ; if ( this . hasInput ( ) ) { val = this . input . val ( ) ; } else { val = this . element . data ( 'pickerValue' ) ; val = this . options . itemProperty ? val [ this . options . itemProperty ] : val ; } if ( ( val === undefined ) || ( val === '' ) || ( val === null ) || ( val === false ) ) { // if not defined or empty, return default val = defaultValue ; } return val ; }
Returns the input or element item value, without formatting, or defaultValue
if it's empty string, undefined, false or null
@param {type} defaultValue
@returns string|mixed
Returns the input or element item value without formatting or defaultValue if it s empty string undefined false or null