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

Raptor deletes bootstrap's $.fn.modal function #179

Open
k98kurz opened this issue Jul 29, 2015 · 2 comments
Open

Raptor deletes bootstrap's $.fn.modal function #179

k98kurz opened this issue Jul 29, 2015 · 2 comments

Comments

@k98kurz
Copy link

k98kurz commented Jul 29, 2015

If raptor is loaded after bootstrap, $.fn.modal becomes undefined. If it loads before bootstrap, raptor breaks entirely. Very strange behavior.

Currently, the only work-around I've found is to insert <script>window.modal = $.fn.modal;</script> before loading raptor.js and <script>$.fn.modal = window.modal;</script> after it. This is a pretty serious compatibility issue; I may have to use a different editor if I encounter more incompatibilities.

@Petah
Copy link
Contributor

Petah commented Jul 29, 2015

Raptor is currently designed to use jQuery UI, there is probably a conflict between jQuery UI's modal and bootstrap's modal.

@k98kurz
Copy link
Author

k98kurz commented Aug 3, 2015

This is not the case. This only occurs when Raptor is loaded; jQuery UI can load safely with bootstrap. I don't know why. It is really bizarre.

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

No branches or pull requests

2 participants