The error (Uncaught TypeError: Cannot read property 'mouseup' of undefined or SCRIPT5007: Unable to get value of the property 'mouseup': object is null or undefined ) manifests in Chrome and IE9 only and only if you have a debugger on, otherwise the page simply disposes without issues.