Skip to content

Core: Drop the root parameter of jQuery.fn.init #5096

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
Aug 29, 2022
Merged

Conversation

mgol
Copy link
Member

@mgol mgol commented Aug 29, 2022

Summary

The third parameter of jQuery.fn.init - root - was just needed to support
jQuery.sub. Since this API has been removed in jQuery 1.9.0 and Migrate 3.x
is not filling it in, this parameter is no longer needed.

This parameter has never been documented but it's safer to remove it in a major
update.

It would still be good to put that in the upgrade guide.

-2 bytes

Checklist

Sorry, something went wrong.

The third parameter of `jQuery.fn.init` - `root` - was just needed to support
`jQuery.sub`. Since this API has been removed in jQuery 1.9.0 and Migrate 3.x
is not filling it in, this parameter is no longer needed.

This parameter has never been documented but it's safer to remove it in a major
update.
@mgol mgol added Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels Aug 29, 2022
@mgol mgol added this to the 4.0.0 milestone Aug 29, 2022
@mgol mgol self-assigned this Aug 29, 2022
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Aug 29, 2022
@mgol mgol added Core and removed Needs review labels Aug 29, 2022
@mgol mgol merged commit d2436df into jquery:main Aug 29, 2022
@mgol mgol deleted the init-no-root branch August 29, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants