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

            var prev_min = $this.data('cur_min'),
                prev_max = $this.data('cur_max');

            if (min > max) {
                _methods.set_position_from_val.call($this, max, min);
            }
            else {
                _methods.set_position_from_val.call($this, min, max);
            }

            // set the style of the grips according to the highlighted range
            _methods.refresh_grips_style.call($this);

            _methods.notify_changed_implicit.call($this, 'set_position', prev_min, prev_max);
            
            // this is for the future, therefore "before the next
            // interaction starts"
            $this.data('beforestart_min', min);
            $this.data('beforestart_max', max);
        }
function(min, max) {
            var $this = this;

            var prev_min = $this.data('cur_min'),
                prev_max = $this.data('cur_max');

            if (min > max) {
                _methods.set_position_from_val.call($this, max, min);
            }
            else {
                _methods.set_position_from_val.call($this, min, max);
            }

            // set the style of the grips according to the highlighted range
            _methods.refresh_grips_style.call($this);

            _methods.notify_changed_implicit.call($this, 'set_position', prev_min, prev_max);
            
            // this is for the future, therefore "before the next
            // interaction starts"
            $this.data('beforestart_min', min);
            $this.data('beforestart_max', max);
        }
function ( min , max ) { var $this = this ; var prev_min = $this . data ( 'cur_min' ) , prev_max = $this . data ( 'cur_max' ) ; if ( min > max ) { _methods . set_position_from_val . call ( $this , max , min ) ; } else { _methods . set_position_from_val . call ( $this , min , max ) ; } // set the style of the grips according to the highlighted range _methods . refresh_grips_style . call ( $this ) ; _methods . notify_changed_implicit . call ( $this , 'set_position' , prev_min , prev_max ) ; // this is for the future, therefore "before the next // interaction starts" $this . data ( 'beforestart_min' , min ) ; $this . data ( 'beforestart_max' , max ) ; }
/*
This one is the public method, called externally.
It sets the position and notifies in fact.
/ * This one is the public method called externally . It sets the position and notifies in fact .