rem: var the_id = node.getAttribute('id'); if(the_id != null) { var hs = _eventHandlers[the_id]; for(eventName in hs) { function h(e) { _alert("an event: "+eventName); _eventHandlers[the_id][eventName](e); return false; }  node[eventName] = h; 
add: var id = node.getAttribute('id'); if(id != null) { var hs = _eventHandlers[id]; for(var eventName in hs) { node[eventName] = function (id, name){return function (e) { _eventHandlers[id][name](e); return false; }}(id, eventName); 
context: function _activateHandlers(node) {  if(!isElement(node))    return;  var the_id = node.getAttribute('id');  if(the_id != null) {    var hs = _eventHandlers[the_id];    for(eventName in hs) {      function h(e) {        _alert("an event: "+eventName);        _eventHandlers[the_id][eventName](e);	return false;      }      node[eventName] = h;    }  }}
meta: 3248	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3248/a2793baf4159e09553902744e25baa5ab5934ff3/jslib.js/buggy/jslib.js