On Fri, Jul 4, 2008 at 7:29 AM, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> Note that the
> (function($){ ... })(jQuery);
> approach is 6 bytes shorter than
> (function(){ var $ = jQuery; })();
>
> It also looks cooler ;)
>
These were exactly the points I was going to make. Since $ is really a
utility function, having a variable declaration for it all the time seems
ugly. The closure trick feels much cleaner, and nicely separates my local
variables from the $ function.
Plus it's shorter.
--Erik

