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

fix(jQuery): weaken window.jQuery error #353

Merged
merged 1 commit into from
Jul 28, 2016
Merged

fix(jQuery): weaken window.jQuery error #353

merged 1 commit into from
Jul 28, 2016

Conversation

dvdzkwsk
Copy link
Member

@dvdzkwsk dvdzkwsk commented Jul 28, 2016

Fixes #352

}

debug('Loading jQuery')
// load jQuery, then load SUI jQuery
window.jQuery = window.$ = require('jquery')
window.jQuery = window.$ = jQuery || require('jquery')
Copy link
Member Author

Choose a reason for hiding this comment

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

Prevents overriding window.jQuery if it exists, which was the source of jQuery extension issues in the past.

@codecov-io
Copy link

codecov-io commented Jul 28, 2016

Current coverage is 92.57% (diff: 100%)

No coverage report found for master at e85aa7c.

Powered by Codecov. Last update e85aa7c...659b226

@levithomason
Copy link
Member

Could you confirm the doc site form validation works as expected with this setup?

@dvdzkwsk dvdzkwsk force-pushed the fix/jquery branch 2 times, most recently from 7cb3d7d to 19946fd Compare July 28, 2016 19:10
@levithomason
Copy link
Member

🉑

@dvdzkwsk
Copy link
Member Author

Confirmed it works with and without jQuery on the window @levithomason .

@dvdzkwsk dvdzkwsk merged commit 659b226 into master Jul 28, 2016
@dvdzkwsk dvdzkwsk deleted the fix/jquery branch July 28, 2016 19:17
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.

3 participants