On Oct 15, 2006, at 21:02, John Resig wrote:
>> Authoring guidelines say "Always use jQuery instead of $ inside your
>> plugin code - that allows users to change the alias for jQuery in a
>> single place." Does this mean only the first line jQuery.fn... or
>> should also extend be jQuery.extend()?
>
> That means everywhere inside. So if you did $.extend() you should do
> jQuery.extend() instead.
Does using jQuery instead of $ concern absolutely every case of $.
For example code such as:
$(this).html() should be jQuery(this).html()
var f = document.createElement("form");
$(f).submit() should be jQuery(f).submit()
This works but to me it is not exactly clear is this what docs mean.
--
Mika Tuupola
http://www.appelsiini.net/~tuupola/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/