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

Effect: Define the jQuery variable before jQuery Color gets imported #1973

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

mgol
Copy link
Member

@mgol mgol commented Sep 3, 2021

We need to create a local jQuery because jQuery Color relies on it and the
global may not exist with AMD and a custom build (trac-10199). This worked
in UI 1.12 but stopped in 1.13 as jQuery Color is now sourced as an AMD module
and the variable started being defined after jQuery Color code. To restore the
proper order, move the variable declaration to a separate small module loaded
before jQuery Color.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
We need to create a local jQuery because jQuery Color relies on it and the
global may not exist with AMD and a custom build (trac-10199). This worked
in UI 1.12 but stopped in 1.13 as jQuery Color is now sourced as an AMD module
and the variable started being defined after jQuery Color code. To restore the
proper order, move the variable declaration to a separate small module loaded
before jQuery Color.
@mgol mgol added this to the 1.13.0 milestone Sep 3, 2021
@mgol mgol requested a review from fnagel September 3, 2021 11:59
@mgol mgol self-assigned this Sep 3, 2021
@mgol mgol merged commit 2fd224d into jquery:main Sep 3, 2021
@mgol mgol deleted the jquery-var-for-color branch September 3, 2021 12:42
Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

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

+1 by reading

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

Successfully merging this pull request may close these issues.

None yet

3 participants