rem: var i = 0; 
add: if(value >= this.values.max()) return(this.values.max()); if(value <= this.values.min()) return(this.values.min());  
context:   getNearestValue: function(value){    if(this.values){      var i = 0;      var offset = Math.abs(this.values[0] - value);      var newValue = this.values[0];      for(i=0; i < this.values.length; i++){        var currentOffset = Math.abs(this.values[i] - value);        if(currentOffset < offset){          newValue = this.values[i];          offset = currentOffset;        }      }      return newValue;    }    return value;  },
meta: 4973	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4973/cbfdecdaa602d7c2b7ff4f3e8c1ced36d4b5ffde/slider.js/clean/src/slider.js