Create closure for jQuery global around jQuery hook #23

Closed
Rodeoclash opened this Issue Feb 7, 2012 · 2 comments

Projects

None yet

2 participants

@Rodeoclash

The jQuery hook relies on jQuery being available in the global namespace under the "$" object. This breaks when noConflict is used. References to the jQuery object should also be contained in a closure, e.g:

(function($) {
// hook code here
})(jQuery)

This will also accomodate the jQuery object being moved in the global namespace. I can create a pull request for this if needed.

@Rodeoclash

Agreed, my misunderstanding.

@Rodeoclash Rodeoclash closed this Feb 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment