[jQuery] Re: Why (function($){ ...})(jQuery) instead of (function(){var $ = jQuery; ...})()?

2008-07-03 Thread jfine
On 3 Jul, 21:35, "Michael Geary" <[EMAIL PROTECTED]> wrote: > Yes, either one will do exactly the same thing. It's purely a matter of > taste. Thank you both for this. I think Michael right, but perhaps Diego would like to response - he thinks there is a difference. Thank you also Michael for

[jQuery] Why (function($){ ...})(jQuery) instead of (function(){var $ = jQuery; ...})()?

2008-07-03 Thread jfine
The (rather long) subject line says it all. This idiom is widely used to avoid having to assume $ == jQuery and at the same time avoiding writing jQuery all the time. (function($){ ... })(jQuery) I'm wondering if instead this would work. (function(){ var $ = jQuery;

[jQuery] ANN: MathTran JavaScript - Google SOC and jQuery

2008-06-15 Thread jfine
Hello You may know already that Google pays students to write open-source software, as part of the Google Summer of Code (GSOC). You may not know that this this year there is, sort of, a jQuery GSOC project! And it involves the (La)TeX typesetting system for mathematics. (Even if you don't car