DispatchEvent constructor shim