javascript syntax and jQuery source
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3090284/for-the-function-function-ive-seen-it-with-the-word-jquery-in-it-why">For the function (function($){})(), I&rsquo;ve seen it with the word jQuery in it, why is that?</a>  </p>
</blockquote>



<p>Can someone explain the following syntax that is used in the jQuery source files? I am learning jQuery and trying to dive into writing a jquery.ui.widget.</p>

<pre><code>(function ($)
{
    ... code ...
} (jQuery));
</code></pre>

<p>While I am using jQuery, this is really just a JavaScript question, I guess.</p>

<p>Thanks,
Craig</p>
