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

Fix jQuery.noConflict #1606

Closed
wants to merge 1 commit into from
Closed

Fix jQuery.noConflict #1606

wants to merge 1 commit into from

Conversation

guillaumebort
Copy link

If there was no jQuery defined at all in the window, using jQuery.noConflict properly remove the jQuery and $ references, but let them as undefined properties.

This fix, completely remove the keys. In the chrome console for example, the $ reference, is then properly reset to the chrome console $ utility.

If there was no jQuery defined at all in the window, using `jQuery.noConflict` properly remove the `jQuery` and `$` references, but let them as `undefined` properties.

This fix, completely remove the keys. In the chrome console for example, the `$` reference, is then properly reset to the chrome console `$` utility.
@rwaldron
Copy link
Member

Needs:

@dmethvin
Copy link
Member

We could do this for master at this point I think but it still can't be done for 1.x-master because oldIE doesn't allow delete window.$ (see gh-1072 and http://bugs.jquery.com/ticket/11081 ). Not sure that we want to have this difference in API behavior across the two.

@markelog
Copy link
Member

Not sure that we want to have this difference in API behavior across the two

+1

@timmywil
Copy link
Member

Not sure that we want to have this difference in API behavior across the two

Agreed.

@mgol
Copy link
Member

mgol commented Jun 27, 2014

Yeah, I'd be all for the patch if we didn't have 1.x. For now it's better to not change it.

@dmethvin
Copy link
Member

We're leaving as-is so the two branches will be consistent.

@dmethvin dmethvin closed this Jun 30, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants