public/javascripts/yui/slider/slider.js
function (max, skipAnim, force, silent) {
        var maxs = this.maxSlider,
            self = this;

        this.activeSlider = maxs;

        // Use a one-time event callback to delay the updateValue call
        // until after the slide operation is done
        this._oneTimeCallback(maxs,'slideEnd',function () {
            self.updateValue(silent);
            // Clean the slideEnd event on a timeout since this
            // will be executed from inside the event's fire
            setTimeout(function () { self._cleanEvent(maxs,'slideEnd'); }, 0);
        });

        maxs.setValue(max, skipAnim, force);
    }
function (max, skipAnim, force, silent) {
        var maxs = this.maxSlider,
            self = this;

        this.activeSlider = maxs;

        // Use a one-time event callback to delay the updateValue call
        // until after the slide operation is done
        this._oneTimeCallback(maxs,'slideEnd',function () {
            self.updateValue(silent);
            // Clean the slideEnd event on a timeout since this
            // will be executed from inside the event's fire
            setTimeout(function () { self._cleanEvent(maxs,'slideEnd'); }, 0);
        });

        maxs.setValue(max, skipAnim, force);
    }
function ( max , skipAnim , force , silent ) { var maxs = this . maxSlider , self = this ; this . activeSlider = maxs ; // Use a one-time event callback to delay the updateValue call // until after the slide operation is done this . _oneTimeCallback ( maxs , 'slideEnd' , function ( ) { self . updateValue ( silent ) ; // Clean the slideEnd event on a timeout since this // will be executed from inside the event's fire setTimeout ( function ( ) { self . _cleanEvent ( maxs , 'slideEnd' ) ; } , 0 ) ; } ) ; maxs . setValue ( max , skipAnim , force ) ; }
Set the max thumb position to a new value.
@method setMaxValue
@param max {int} Pixel offset for max thumb
@param skipAnim {boolean} (optional) Set to true to skip thumb animation.
Default false
@param force {boolean} (optional) ignore the locked setting and set
value anyway. Default false
@param silent {boolean} (optional) Set to true to skip firing change
events.  Default false
Set the max thumb position to a new value .