This defines an anonymous function with one argument, called $, then invokes the function passing jQuery as the argument.
Ned Batchelder
2010-06-23 20:14:37
This defines an anonymous function with one argument, called $, then invokes the function passing jQuery as the argument.
It's called the self executing anonymous function. No different than any other function call except the function is a literal ( doesnt have a name ), is wrapped in parens to make it a valid expression and then invoked.
function blah($){};
blah(jQuery);
is the same as that piece of code, it creates a private namespace in which the window.jQuery object is passed and referenced within the function body as $ to prevent namespace collisions.