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

Align jQuery.merge & push.apply calls #5298

Open
mgol opened this issue Jul 12, 2023 · 1 comment
Open

Align jQuery.merge & push.apply calls #5298

mgol opened this issue Jul 12, 2023 · 1 comment
Labels
Milestone

Comments

@mgol
Copy link
Member

mgol commented Jul 12, 2023

Description

We have a number jQuery.merge & push.apply calls that seem interchangeable in many cases. We should investigate their usage and perhaps align to one of them. If push.apply works fine, we could investigate simplifying the jQuery.merge implementation by leveraging it.

We used to have a comment about that in domManip.js but we should investigate all places.

When investigating, take #4320 into account.

Link to test case

@mgol mgol added the Core label Jul 12, 2023
@mgol mgol added this to the 4.1.0 milestone Jul 12, 2023
mgol added a commit to mgol/jquery that referenced this issue Jul 12, 2023
…5298

jquerygh-5298 is about analysing `push.apply` & `jQuery.merge` usage more
comprehensively.
@mgol
Copy link
Member Author

mgol commented Sep 7, 2023

More interesting context about the limits of push.apply in jquery/sizzle#403; some performance aspects are also addressed in a discussion there.

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

No branches or pull requests

1 participant