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
Multiple imports of jquery modal #309
Comments
Love the lib by the way. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My team sometimes imports libraries on their standalone pages that are already in a master page (they forget to look). With jquery.modal this causes an issue when trying to hit the auto-generated closes button (clicking outside the modal or hitting escape still work). You can test for the existence of your library before you initialize it by adding the code from this SO answer...
https://stackoverflow.com/a/400943/817625
Wrapping your code with this would prevent any errors in the future.
The text was updated successfully, but these errors were encountered: