rem: if(value > this.range.end) return this.range.end; if(value < this.range.start) return this.range.start; 
add: if (value > this.range.end) return this.range.end; if (value < this.range.start) return this.range.start; 
context:   getNearestValue: function(value){    if(this.allowedValues){      if(value >= this.allowedValues.max()) return(this.allowedValues.max());      if(value <= this.allowedValues.min()) return(this.allowedValues.min());            var offset = Math.abs(this.allowedValues[0] - value);      var newValue = this.allowedValues[0];      this.allowedValues.each( function(v) {        var currentOffset = Math.abs(v - value);        if(currentOffset <= offset){          newValue = v;          offset = currentOffset;        }       });      return newValue;    }    if(value > this.range.end) return this.range.end;    if(value < this.range.start) return this.range.start;    return value;  },
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/2d4247a14ff4ce25ad80cbc65b787dfde7ddb16e/slider.js/buggy/typo3/contrib/scriptaculous/slider.js