Fix Bug 977087 - Fix custom event shim for IE8.