Skip to content

Event: Patch jQuery.event.special's prototype #573

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 14, 2025

Note: This is ready to review but skip the first commit; I only marked this as a draft because #569 needs to land first, which is the first commit.

Allow to use common Object.prototype properties on jQuery.event.special but
warn as well.

Fixes gh-542
Ref gh-572

The 3.x version: #572

mgol added 2 commits April 14, 2025 18:43
Also, extract the util to patch a prototype as we'll need it in the event
module as well.
Allow to use common `Object.prototype` properties on `jQuery.event.special` but
warn as well.

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

Successfully merging this pull request may close these issues.

Warn about accessing props from Object.prototype in .data()/jQuery.event.special
1 participant