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 “define is not defined” error when jquery-ui file is loaded #113

Merged
merged 1 commit into from Dec 1, 2016

Conversation

Borzik
Copy link
Contributor

@Borzik Borzik commented Dec 1, 2016

This PR simply ignores contents of core.js file since this is an index and we explicitly load all required files with Rails Assets pipeline. Fixes #108 #112 (more info in #108)

@Borzik
Copy link
Contributor Author

Borzik commented Dec 1, 2016

@joliss also I think this gem needs some more tests because right now testapp only requires one specific widget (datepicker) which raised no problems/errors during tests, but loading the whole jquery-ui library had that issue.
The simplest thing to test it is to require jquery-ui.js index file instead of some specific widget. What do you think?

@joliss joliss merged commit 4595e51 into jquery-ui-rails:master Dec 1, 2016
@joliss
Copy link
Member

joliss commented Dec 1, 2016

Thanks!

@joliss
Copy link
Member

joliss commented Dec 1, 2016

also I think this gem needs some more tests because right now testapp only requires one specific widget (datepicker) which raised no problems/errors during tests, but loading the whole jquery-ui library had that issue.
The simplest thing to test it is to require jquery-ui.js index file instead of some specific widget. What do you think?

Sure, I'm happy with that!

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.

None yet

2 participants