element.getOffsetParent error thrown in prototype after closing window/scrolling in IE
|
|
After I open a window and close it, once you attempt to scroll the page in IE, it throws an error in Prototype’s getOffsetParent’s function: getOffsetParent: function(element) { if (element.offsetParent) return $(element.offsetParent); <<<< this line By wrapping this if statement in a try/catch block, all is good (code execution continues in method). |