Hey, I was just looking at the docs for the noConflict function and it says nothing about how it works (obviously). I just wondered if anyone knew.
Does it unset $? (delete window.$?)
Any suggestions will be much appreciated.
You can check the source code:
// Map over the $ in case of overwrite
_$ = window.$
//....
noConflict: function( deep ) {
window.$ = _$;
if ( deep ) {
window.jQuery = _jQuery;
}
return jQuery;
}
It reverts $ to what it was before jQuery was loaded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With