Possible Duplicate:
For the function (function($){})(), I’ve seen it with the word jQuery in it, why is that?
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.
(function ($)
{
... code ...
} (jQuery));
While I am using jQuery, this is really just a JavaScript question, I guess.
Thanks, Craig