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

jQuery.noconflict does not always resolve conflicts with other versions of jQuery loaded #79

Closed
mcsheaj opened this issue Nov 19, 2018 · 1 comment

Comments

@mcsheaj
Copy link
Owner

mcsheaj commented Nov 19, 2018

It's a timing issue. Some other version of jQuery is loaded, with a plugin that does something asynchronous. Then my version of jQuery gets loaded, and the asynchronous action occurs before I call noconflict. The plugin finds a version of jQuery on which it is not loaded and crashes.

To fix it, I modified my version of jQuery such that it never defines a global $ or jQuery variable. It defines spefjQuery, which I will use, and I've modified all of my plugins to use it also. This way, SPEasyForms can peacefully co-exist with any other versions of jQuery that might get loaded.

@mcsheaj
Copy link
Owner Author

mcsheaj commented Nov 19, 2018

Fixed in 2018.03

@mcsheaj mcsheaj closed this as completed Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant