Roan Kattouw wrote:
> 2009/11/27 Tim Starling <[email protected]>:
>
> ...
>> loadGM(), gM(): misnamed, neither should be global, excessively
>> abbreviated and unintelligible function names. I suggest adding
>> mw.getMsg() and mw.addMessages() to wikibits.js.
>>
>> $j: idiosyncratic, what's wrong with calling jQuery jQuery like
>> everyone else?
>>
>>
> I have no idea why that was done. Note that the 'normal' alias for
> jQuery (the one it also defines itself) is $ .
>
I believe I read a note saying it was for compatibility with other
javascript libraries that set $ to other things.
IMHO the recommended technique should just be used instead of another alias:
(function($) {
// your code here
})(jQuery);
> ...
> Roan Kattouw (Catrope)
>
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l