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

Support loading multiple jqueries #13

Merged
merged 1 commit into from
Jun 22, 2015
Merged

Conversation

Achiel
Copy link
Contributor

@Achiel Achiel commented Jun 15, 2015

So, the problem here is that jquery is a library that uses define (AMD
style), but passes it an explicit string which is non unique, "jquery".
This means that if you load different jquery versions they will all
try to define themselves as "jquery".

Using the unminified jquery version (we bundle when creating MDAs anyway)
and removing the jquery identifier solves this problem, as the define
will then define itself as the path to the file.

So, the problem here is that jquery is a library that uses define (AMD
style), but passes it an explicit string which is non unique, "jquery".
This means that if you load different jquery versions they will all
try to define themselves as "jquery".

Using the unminified jquery version (we bundle when creating MDAs anyway)
and removing the jquery identifier solves this problem, as the define
will then define itself as the path to the file.
johanflint added a commit that referenced this pull request Jun 22, 2015
Support loading multiple JQuery versions
@johanflint johanflint merged commit b190396 into master Jun 22, 2015
@johanflint johanflint deleted the jquery-fix-undefine branch June 22, 2015 15:25
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.

2 participants