rem: if (document.removeEventListener) {document.removeEventListener('mousemove', moveHandler, true); document.removeEventListener('mouseup', upHandler, true); } else   {elementToDrag.detachEvent('onmouseup', upHandler); elementToDrag.detachEvent('onmousemove', moveHandler); elementToDrag.releaseCapture(); } 
add: if (document.removeEventListener) { document.removeEventListener('mousemove', moveHandler, true);  document.removeEventListener('mouseup', upHandler, true);  } else { elementToDrag.detachEvent('onmouseup', upHandler);  elementToDrag.detachEvent('onmousemove', moveHandler);  elementToDrag.releaseCapture(); } 
context:          function upHandler(e)            {if (!e) e = window.event;             if (document.removeEventListener)                    {document.removeEventListener('mousemove',                                                  moveHandler,                                                  true);     // Capture phase                     document.removeEventListener('mouseup',                                                  upHandler,                                                  true);     // Capture phase                    }             else   {elementToDrag.detachEvent('onmouseup',                                                 upHandler); // Bubbling phase                     elementToDrag.detachEvent('onmousemove',                                               moveHandler); // Bubbling phase                     elementToDrag.releaseCapture();                    }             scwStopPropagation(e);            }
meta: 3685	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js