kylefox/jquery-modal — Issue #7: Add support for jQuery with .noConflict() mode
Author: lamberski
Created: 2012-02-03 17:04:14+00:00
State: open

When using jQuery with [.noConflict()](http://api.jquery.com/jQuery.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.