src/jquery.nstSlider.js
function (leftPx, rightPx) {
            var $this = this;

            //
            // we need to find a value from the given value in pixels
            //

            // now set the position as requested...
            _methods.set_handles_at_px.call($this, leftPx, rightPx);

            var valueLeftRight = _methods.getSliderValuesAtPositionPx.call($this, leftPx, rightPx),
                leftPxInValue = valueLeftRight[0],
                rightPxInValue = valueLeftRight[1];

            // ... and save the one we've found.
            $this.data('cur_min', leftPxInValue);

            if ($this.data('has_right_grip')) {
                $this.data('cur_max', rightPxInValue);
            }

            return $this;
        }
function (leftPx, rightPx) {
            var $this = this;

            //
            // we need to find a value from the given value in pixels
            //

            // now set the position as requested...
            _methods.set_handles_at_px.call($this, leftPx, rightPx);

            var valueLeftRight = _methods.getSliderValuesAtPositionPx.call($this, leftPx, rightPx),
                leftPxInValue = valueLeftRight[0],
                rightPxInValue = valueLeftRight[1];

            // ... and save the one we've found.
            $this.data('cur_min', leftPxInValue);

            if ($this.data('has_right_grip')) {
                $this.data('cur_max', rightPxInValue);
            }

            return $this;
        }
function ( leftPx , rightPx ) { var $this = this ; // // we need to find a value from the given value in pixels // // now set the position as requested... _methods . set_handles_at_px . call ( $this , leftPx , rightPx ) ; var valueLeftRight = _methods . getSliderValuesAtPositionPx . call ( $this , leftPx , rightPx ) , leftPxInValue = valueLeftRight [ 0 ] , rightPxInValue = valueLeftRight [ 1 ] ; // ... and save the one we've found. $this . data ( 'cur_min' , leftPxInValue ) ; if ( $this . data ( 'has_right_grip' ) ) { $this . data ( 'cur_max' , rightPxInValue ) ; } return $this ; }
/*
Set the position of the handles at the specified pixel points (taking
the whole slider width as a maximum point).
/ * Set the position of the handles at the specified pixel points ( taking the whole slider width as a maximum point ) .