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

Add support for jQuery with .noConflict() mode #7

Closed
lamberski opened this issue Feb 3, 2012 · 1 comment
Closed

Add support for jQuery with .noConflict() mode #7

lamberski opened this issue Feb 3, 2012 · 1 comment

Comments

@lamberski
Copy link

When using jQuery with .noConflict() mode, jquery-modal throws error:

Cannot read property 'fn' of undefined

It can be easily fixed by replacing })(); with })(jQuery); and adding it as an argument on the begining of script - (function($) {. This way, even if jQuery was detatched from $ variable, plugin will work.

@kylefox kylefox closed this as completed in 4321d01 Feb 3, 2012
@kylefox
Copy link
Owner

kylefox commented Feb 3, 2012

Nice catch, should be fixed now. Thanks!

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