src/aria/touch/widgets/DoubleSlider.js
function () {
            var value, binding = this._binding;
            if (!binding) {
                return;
            }
            value = binding.inside[binding.to];
            if (ariaUtilsType.isArray(value)) {
                // Constrain values to be between 0 and 1 and the first to be smaller
                this.value[0] = Math.max(0, Math.min(value[0], value[1], 1));
                this.value[1] = Math.min(1, Math.max(value[0], value[1], 0));
            }
            ariaUtilsJson.setValue(binding.inside, binding.to, this.value, this._bindingCallback);
        }
function () {
            var value, binding = this._binding;
            if (!binding) {
                return;
            }
            value = binding.inside[binding.to];
            if (ariaUtilsType.isArray(value)) {
                // Constrain values to be between 0 and 1 and the first to be smaller
                this.value[0] = Math.max(0, Math.min(value[0], value[1], 1));
                this.value[1] = Math.min(1, Math.max(value[0], value[1], 0));
            }
            ariaUtilsJson.setValue(binding.inside, binding.to, this.value, this._bindingCallback);
        }
function ( ) { var value , binding = this . _binding ; if ( ! binding ) { return ; } value = binding . inside [ binding . to ] ; if ( ariaUtilsType . isArray ( value ) ) { // Constrain values to be between 0 and 1 and the first to be smaller this . value [ 0 ] = Math . max ( 0 , Math . min ( value [ 0 ] , value [ 1 ] , 1 ) ) ; this . value [ 1 ] = Math . min ( 1 , Math . max ( value [ 0 ] , value [ 1 ] , 0 ) ) ; } ariaUtilsJson . setValue ( binding . inside , binding . to , this . value , this . _bindingCallback ) ; }
Read the bound value in the data model, ensure it is defined, between 0 and 1, and assign the value property.
@protected
Read the bound value in the data model ensure it is defined between 0 and 1 and assign the value property .