Daniel MacDonald schrieb:
> I believe I got it, using:
>
> jQuery.log = {
> error : function() { ... },
> warning : function() { ... },
> debug : function() { ... },
> };
>
> as opposed to:
>
> var log = {
> error : function() { ... },
> warning : function() { ... },
> debug : function() { ... },
> };
>
> prevents a conflict with some other script that uses log in the global
> scope. Of course, I still have to watch out for other jQuery.log objects.
>
Right. But at least its safe to assume that any code that places itself
in the jQuery namespace requires jQuery to run.
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/