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

[CLEANUP beta] Remove internal jQuery usage #19676

Merged
merged 1 commit into from Aug 20, 2021

Conversation

simonihmig
Copy link
Contributor

@simonihmig simonihmig commented Jul 22, 2021

Removes leftover internal jQuery references, and JQUERY_INTEGRATION and jQueryDisabled flags.

Should be passing once #19666 and #19675 (or some other PR that removes usage of jQueryDisabled from ember-testing) have landed.

@simonihmig simonihmig marked this pull request as ready for review August 18, 2021 09:17
@simonihmig
Copy link
Contributor Author

@mixonic rebased and ready for review

librariesRegistered = true;

if (JQUERY_INTEGRATION && hasDOM && !jQueryDisabled) {
libraries.registerCoreLibrary('jQuery', jQuery().jquery);
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Slightly unrelated, but is libraries really used for anything after this removal? I don't think it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, you mean the whole libraries thing, or just the import here? The import is used here for logging the Ember and possibly other registered addon versions to the console. And for that libraries.register() is still used in addons (I am using it here for example, but this reminds me I actually have to refactor this to not use the Ember global!) and ember-data itself. So I think this has to stay!?

@mixonic mixonic merged commit 5593d7e into emberjs:master Aug 20, 2021
@mixonic mixonic changed the title Remove internal jQuery usage [CLEANUP beta] Remove internal jQuery usage Aug 20, 2021
@mixonic
Copy link
Sponsor Member

mixonic commented Aug 20, 2021

@kategengler note, I belatedly updated the title here to include [CLEANUP beta]

@kategengler
Copy link
Member

👍 As long as it is a recent merged and title is changed before the next beta, I'll catch any updated tags. I look through both commits & PRs due to inconsistency.

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.

None yet

3 participants