<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='docs.xsl'?>
<docs>
<method cat='Core' type='undefined' short='Run this function to give control of the $ variable back
to whichever library first implemented it.' name='$.noConflict'>
<desc>Run this function to give control of the $ variable back
to whichever library first implemented it. This helps to make 
sure that jQuery doesn't conflict with the $ object
of other libraries.

By using this function, you will only be able to access jQuery
using the 'jQuery' variable. For example, where you used to do
$("div p"), you now must do jQuery("div p").</desc>
<examples>
<desc>Maps the original object that was referenced by $ back to $</desc>
<code>jQuery.noConflict();
// Do something with jQuery
jQuery("div p").hide();
// Do something with another library's $()
$("content").style.display = 'none';</code>
</examples>
<examples>
<desc>Reverts the $ alias and then creates and executes a
function to provide the $ as a jQuery alias inside the functions
scope. Inside the function the original $ object is not available.
This works well for most plugins that don't rely on any other library.</desc>
<code>jQuery.noConflict();
(function($) { 
  $(function() {
    // more code using $ as alias to jQuery
  });
})(jQuery);
// other code using $ as an alias to the other library</code>
</examples>
</method></docs>
