jQuery variable shadowing
<p>There is strange pattern in jQuery:</p>

<pre><code>var jQuery = (function() {

// Define a local copy of jQuery
var jQuery = function( selector, context ) {
 ...
return jQuery;

})();
</code></pre>

<p>What is the practical reason for this? Why not just expose the inner jQuery function? Is it only for name clashes in the inner jQuery and outer jQuery since both are in closures.</p>
