rem: if (element.removeEventListener) { 
add: if (element && element.removeEventListener) { 
context:   stopObserving: function(elementParam, name, observer, useCapture) {    var element = $(elementParam);    useCapture = useCapture || false;    if (name == 'keypress' &&        (navigator.appVersion.match(/Konqueror|Safari|KHTML/)        || element.detachEvent))      name = 'keydown';    if (element.removeEventListener) {      element.removeEventListener(name, observer, useCapture);    } else if (element.detachEvent) {      element.detachEvent('on' + name, observer);    }  }
meta: 4411	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4411/6b0e8c32a2122d18c8f23583593e9a43784b13a8/Events.js/buggy/lib/OpenLayers/Events.js