function () {
            var $this = this,
            settings = $this.data('settings');

            // Skip refreshing grips style if no hihglight is specified in
            // construction
            if (typeof settings.highlight === 'undefined') {
                return;
            }

            var highlightedRangeMin = $this.data('highlightedRangeMin');

            if (typeof highlightedRangeMin === 'undefined') {
                return;
            }

            var $leftGrip = $this.find(settings.left_grip_selector),
                $rightGrip = $this.find(settings.right_grip_selector),
                highlightedRangeMax = $this.data('highlightedRangeMax'),
                curMin = $this.data('cur_min'),
                curMax = $this.data('cur_max'),
                highlightGripClass = settings.highlight.grip_class;

            // curmin is within the highlighted range
            if (curMin < highlightedRangeMin || curMin > highlightedRangeMax) {
                // de-highlight grip
                $leftGrip.removeClass(highlightGripClass);
            }
            else {
                // highlight grip
                $leftGrip.addClass(highlightGripClass);
            }

            // time to highlight right grip
            if (curMax < highlightedRangeMin || curMax > highlightedRangeMax) {
                // de-highlight grip
                $rightGrip.removeClass(highlightGripClass);
            }
            else {
                // highlight grip
                $rightGrip.addClass(highlightGripClass);
            }
        }
function () {
            var $this = this,
            settings = $this.data('settings');

            
            
            if (typeof settings.highlight === 'undefined') {
                return;
            }

            var highlightedRangeMin = $this.data('highlightedRangeMin');

            if (typeof highlightedRangeMin === 'undefined') {
                return;
            }

            var $leftGrip = $this.find(settings.left_grip_selector),
                $rightGrip = $this.find(settings.right_grip_selector),
                highlightedRangeMax = $this.data('highlightedRangeMax'),
                curMin = $this.data('cur_min'),
                curMax = $this.data('cur_max'),
                highlightGripClass = settings.highlight.grip_class;

            
            if (curMin < highlightedRangeMin || curMin > highlightedRangeMax) {
                
                $leftGrip.removeClass(highlightGripClass);
            }
            else {
                
                $leftGrip.addClass(highlightGripClass);
            }

            
            if (curMax < highlightedRangeMin || curMax > highlightedRangeMax) {
                
                $rightGrip.removeClass(highlightGripClass);
            }
            else {
                
                $rightGrip.addClass(highlightGripClass);
            }
        }
function ( ) { var $this = this , settings = $this . data ( 'settings' ) ; // Skip refreshing grips style if no hihglight is specified in // construction if ( typeof settings . highlight === 'undefined' ) { return ; } var highlightedRangeMin = $this . data ( 'highlightedRangeMin' ) ; if ( typeof highlightedRangeMin === 'undefined' ) { return ; } var $leftGrip = $this . find ( settings . left_grip_selector ) , $rightGrip = $this . find ( settings . right_grip_selector ) , highlightedRangeMax = $this . data ( 'highlightedRangeMax' ) , curMin = $this . data ( 'cur_min' ) , curMax = $this . data ( 'cur_max' ) , highlightGripClass = settings . highlight . grip_class ; // curmin is within the highlighted range if ( curMin < highlightedRangeMin || curMin > highlightedRangeMax ) { // de-highlight grip $leftGrip . removeClass ( highlightGripClass ) ; } else { // highlight grip $leftGrip . addClass ( highlightGripClass ) ; } // time to highlight right grip if ( curMax < highlightedRangeMin || curMax > highlightedRangeMax ) { // de-highlight grip $rightGrip . removeClass ( highlightGripClass ) ; } else { // highlight grip $rightGrip . addClass ( highlightGripClass ) ; } }
/*
This method is called whenever the style of the grips needs to get
updated.
/ * This method is called whenever the style of the grips needs to get updated .