I usually throw it in a chain. $(....).debug("debug number 1").....

On 11/9/06, Chris W. Parker <[EMAIL PROTECTED]> wrote:
> On Thursday, November 09, 2006 2:17 PM ???? <> said:
>
> > jQuery.fn.debug = function(message) {
> >       return this.log('debug:' + (message || '')
> > +"[").each(function(){$.log(this);}).log("]");
> > };
> > jQuery.fn.log = jQuery.log = function(message) {
> >       if(window.console)
> >               console.debug(message)
> >       else if (window.opera && window.opera.postError)
> >               window.opera.postError(s)
> >       else if (not(message.match(/^[\[\]]$/)))
> >               alert(message);
> >       return this;
> > };
>
> How do I use that?
>
> I added it to the top of my custom.js file (which is included after
> jQuery) and I tried $.debug(variableName) and all it did was say
> "$.debug is not a function".
>
>
>
> Thanks,
> Chris.
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to