src/aria/touch/widgets/Slider.js
function () {
            var val = this._value;
            if (val >= this._switchThreshold) {
                this._onContainer.style.width = this._cfg.width + "px";
                this._onContainer.style.left = "0px";
                this._offContainer.style.width = "0px";
                this._value = 1;
            } else {
                this._offContainer.style.width = this._cfg.width + "px";
                this._offContainer.style.left = "0px";
                this._onContainer.style.width = "0px";
                this._value = 0;
            }
            if (val !== this._value) {
                this._storeValue();
            }
        }
function () {
            var val = this._value;
            if (val >= this._switchThreshold) {
                this._onContainer.style.width = this._cfg.width + "px";
                this._onContainer.style.left = "0px";
                this._offContainer.style.width = "0px";
                this._value = 1;
            } else {
                this._offContainer.style.width = this._cfg.width + "px";
                this._offContainer.style.left = "0px";
                this._onContainer.style.width = "0px";
                this._value = 0;
            }
            if (val !== this._value) {
                this._storeValue();
            }
        }
function ( ) { var val = this . _value ; if ( val >= this . _switchThreshold ) { this . _onContainer . style . width = this . _cfg . width + "px" ; this . _onContainer . style . left = "0px" ; this . _offContainer . style . width = "0px" ; this . _value = 1 ; } else { this . _offContainer . style . width = this . _cfg . width + "px" ; this . _offContainer . style . left = "0px" ; this . _onContainer . style . width = "0px" ; this . _value = 0 ; } if ( val !== this . _value ) { this . _storeValue ( ) ; } }
Update the position of the on and off labels
@protected
Update the position of the on and off labels