src/jquery.nstSlider.js
function () {
            var $this = this,
                settings = $this.data('settings'),
                $leftGrip = $this.find(settings.left_grip_selector);

            //
            // double grips sliders is probably the most common case...
            // ... also, the values to be set in the two cases are quite
            // different.
            //
            if ($this.data('has_right_grip')) {

                var $rightGrip = $this.find(settings.right_grip_selector);

                //
                // grips are mutually binding their max/min values when 2 grips
                // are present. For example, we should imagine the left grip as
                // being constrained between [ rangeMin, valueMax ]
                //
                $leftGrip
                    .attr('aria-valuemin', $this.data('range_min'))
                    .attr('aria-valuenow', methods.get_current_min_value.call($this))
                    .attr('aria-valuemax', methods.get_current_max_value.call($this));

                $rightGrip
                    .attr('aria-valuemin', methods.get_current_min_value.call($this))
                    .attr('aria-valuenow', methods.get_current_max_value.call($this))
                    .attr('aria-valuemax', $this.data('range_max'));
            }
            else {
                $leftGrip
                    .attr('aria-valuemin', $this.data('range_min'))
                    .attr('aria-valuenow', methods.get_current_min_value.call($this))
                    .attr('aria-valuemax', $this.data('range_max'));
            }

            return $this;
         }
function () {
            var $this = this,
                settings = $this.data('settings'),
                $leftGrip = $this.find(settings.left_grip_selector);

            //
            // double grips sliders is probably the most common case...
            // ... also, the values to be set in the two cases are quite
            // different.
            //
            if ($this.data('has_right_grip')) {

                var $rightGrip = $this.find(settings.right_grip_selector);

                //
                // grips are mutually binding their max/min values when 2 grips
                // are present. For example, we should imagine the left grip as
                // being constrained between [ rangeMin, valueMax ]
                //
                $leftGrip
                    .attr('aria-valuemin', $this.data('range_min'))
                    .attr('aria-valuenow', methods.get_current_min_value.call($this))
                    .attr('aria-valuemax', methods.get_current_max_value.call($this));

                $rightGrip
                    .attr('aria-valuemin', methods.get_current_min_value.call($this))
                    .attr('aria-valuenow', methods.get_current_max_value.call($this))
                    .attr('aria-valuemax', $this.data('range_max'));
            }
            else {
                $leftGrip
                    .attr('aria-valuemin', $this.data('range_min'))
                    .attr('aria-valuenow', methods.get_current_min_value.call($this))
                    .attr('aria-valuemax', $this.data('range_max'));
            }

            return $this;
         }
function ( ) { var $this = this , settings = $this . data ( 'settings' ) , $leftGrip = $this . find ( settings . left_grip_selector ) ; // // double grips sliders is probably the most common case... // ... also, the values to be set in the two cases are quite // different. // if ( $this . data ( 'has_right_grip' ) ) { var $rightGrip = $this . find ( settings . right_grip_selector ) ; // // grips are mutually binding their max/min values when 2 grips // are present. For example, we should imagine the left grip as // being constrained between [ rangeMin, valueMax ] // $leftGrip . attr ( 'aria-valuemin' , $this . data ( 'range_min' ) ) . attr ( 'aria-valuenow' , methods . get_current_min_value . call ( $this ) ) . attr ( 'aria-valuemax' , methods . get_current_max_value . call ( $this ) ) ; $rightGrip . attr ( 'aria-valuemin' , methods . get_current_min_value . call ( $this ) ) . attr ( 'aria-valuenow' , methods . get_current_max_value . call ( $this ) ) . attr ( 'aria-valuemax' , $this . data ( 'range_max' ) ) ; } else { $leftGrip . attr ( 'aria-valuemin' , $this . data ( 'range_min' ) ) . attr ( 'aria-valuenow' , methods . get_current_min_value . call ( $this ) ) . attr ( 'aria-valuemax' , $this . data ( 'range_max' ) ) ; } return $this ; }
/*
Update aria attributes of the slider based on the current
configuration of the slider.
/ * Update aria attributes of the slider based on the current configuration of the slider .