rem: activate(node);  var child; for(child = node.firstChild; child != null; child = child.nextSibling) { if(!isElement(child)) continue; activate(child); } 
add: _appDom(node, activate); 
context: function _activateHandlers(node) {  if(!isElement(node))    return;  function activate(node) {    var key = node.getAttribute('key');    if(key != null) {      var hs = _eventHandlers[key];      for(var lAttrName in hs) {        listenerElem = lAttrName.match(/page$/) ? document.documentElement : node;        var handlerName = lAttrName.replace(/page$/, "");        var eventName = handlerName.replace(/^on/, "");  //      _debug("installing event handler "+eventName+"; for node: "+key);        jslib.event.addListener(listenerElem, eventName,  	function (key, name){return function (e) {  //          _alert("firing event: "+name+ " on elem with key=" + key);            // TBD: clone the event record.            //_debug("registered handler is " + _eventHandlers[key][name]);  //          _dumpSchedStatus();   	  _eventHandlers[key][name](e);  	  // make sure this event isn't handled by anyone else            jslib.event.stopEvent(e);  	  return false;        	}}(key, lAttrName)          );      }    }  }  activate(node);  // don't recurse!  var child;  for(child = node.firstChild; child != null; child = child.nextSibling) {    if(!isElement(child)) continue;    activate(child);  }}
meta: 3248	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3248/cafe0cf95cdf306c7bbd6113bd82df1fc77fa097/jslib.js/buggy/lib/js/jslib.js