Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced initEvent to new Event #422

Closed

Conversation

cyfung1031
Copy link

@cyfung1031 cyfung1031 commented May 3, 2023

initEvent is no longer recommended.

The standard is new Event or new MouseEvent instead of document.createEvent + event.initEvent

There shall be no compatible issue since IE11+ dropped.
API docs: new Event & new MouseEvent
Chrome 26+, Edge 12+, Firefox 11+, Opera 15+, Safari 7+

[initEvent](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent) is no longer recommended.

The standard is `new Event` or `new MouseEvent` instead of `document.createEvent` + `event.initEvent`
cyfung1031 added a commit to cyfung1031/jquery-cash that referenced this pull request May 3, 2023
As per introduction of `WeakMap` in fabiospampinato#423 and dropped `initEvent` with IE11 in fabiospampinato#422.
@fabiospampinato
Copy link
Owner

Thank you, as this is a change with brings no benefits (there's loads of deprecated web stuff which will never be removed), I'd rather not take the risk and merge something which maaaaaybe may have some unforeseen changes, since the premise is that ideally this should basically work the same way anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants