Skip to content

Removing window.jQuery from autoProvidejQuery #46

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
Jun 21, 2017

Conversation

weaverryan
Copy link
Member

Fixes #32

This is because - when this is enabled - it's impossible to expose jQuery as a global
variable on window (without use the expose loader). Specifically, window.jQuery = ...
is re-written in your JS code.

A docs PR also needs to be opened to document how to fix problems if a library depends on window.jQuery specifically (is there a good re-world example?)

This is because - when this is enabled - it's impossible to expose jQuery as a global
variable on window (without use the expose loader). Specifically, window.jQuery = ...
is re-written in your JS code.
@weaverryan weaverryan mentioned this pull request Jun 21, 2017
@weaverryan
Copy link
Member Author

I'm going to merge this so that the next release contains the same code (i.e. without window.jQuery) as the current release. Then we can see what we want to do going forward.

@weaverryan weaverryan merged commit 3703a5a into symfony:master Jun 21, 2017
weaverryan added a commit that referenced this pull request Jun 21, 2017
This PR was merged into the master branch.

Discussion
----------

Removing window.jQuery from autoProvidejQuery

Fixes #32

This is because - when this is enabled - it's impossible to expose jQuery as a global
variable on window (without use the expose loader). Specifically, window.jQuery = ...
is re-written in your JS code.

A docs PR also needs to be opened to document how to fix problems if a library depends on `window.jQuery` specifically (is there a good re-world example?)

Commits
-------

3703a5a Removing window.jQuery from autoProvidejQuery
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.

jQuery not exposed
1 participant