Skip to content

Core: Make migrateWarnProp not return the prop for disabled patches #571

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 8, 2025

Also:

  1. Don't warn just on access of jQuery.fn.push, etc., but when it's called.
  2. Rename some internal methods.

Also:
1. Don't warn just on access of `jQuery.fn.push`, etc., but when it's called.
2. Rename some internal methods.
@mgol mgol added this to the 4.0.0 milestone Apr 8, 2025
@mgol mgol self-assigned this Apr 8, 2025
Comment on lines -119 to -120
// The function may not have existed originally so we need a fallback.
( origFunc || jQuery.noop );
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why I added this noop fallback originally, but if the patch is disabled, the function should not be available if it wasn't there originally. I added tests for that (the push & isArray ones).

@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Apr 8, 2025
@mgol
Copy link
Member Author

mgol commented Apr 8, 2025

Adding "Discuss in Meeting" as this blocks another patch for 4.0.0.

@mgol mgol merged commit 0ea1015 into jquery:main Apr 14, 2025
9 checks passed
@mgol mgol deleted the tweak-messaging branch April 14, 2025 16:24
@mgol mgol added 4.x-only and removed Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants