jquery-modal
jquery-modal copied to clipboard
Multiple imports of jquery modal
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.
Love the lib by the way.