rem: addAnEvent(divs[i], 'mouseup', function(e){ 
add:     divs[i].onmouseup = function(e){  if (e==null) e = event;  
context: function attachSliderEvents() {	var divs=document.getElementsByTagName('div');	var divNum;	for(var i=0; i<divs.length; i++) {		if (divNum=divs[i].id.match(/\bslider(\d+)\b/)) {			divNum=parseInt(divNum[1]);			divs[i].min=slider[divNum].min;			divs[i].max=slider[divNum].max;			divs[i].val=slider[divNum].val;			divs[i].onchange=slider[divNum].onchange;			divs[i].num=divNum;			addAnEvent(divs[i], 'mousedown', function(e){				sliderClick(e);				var el=sliderFromEvent(e);				if (!el) return;				activeSlider=el.num;				stopEvent(e);			});			addAnEvent(divs[i], 'mouseup', function(e){				activeSlider=-1;				stopEvent(e);			});		}	}}
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3428/287262645f075d0c12ff3af9c18b4f81f2c781b1/slider.js/clean/code/javascript/tests/html/slider/example_files/slider.js