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

jQuery.noConflict() handling #65

Open
nathan-nhm opened this issue Oct 21, 2016 · 0 comments
Open

jQuery.noConflict() handling #65

nathan-nhm opened this issue Oct 21, 2016 · 0 comments

Comments

@nathan-nhm
Copy link

Hve a legacy project that still hasn't gotten all ti prototype js code out yet.

jQuery.noConflict() lets us handle it. But the code here isn't written for the jQuery namespace.

I've only done tried this on non-distribution code - but the two line fix is:

;(function ($, window, undefined){

// all $. and $( code here

})(jQuery, window);

Or $. and $( could be replaced with jQuery. and jQuery( respectively.

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

1 participant