Try this one :)
http://pastemonkey.org/paste/471a49a0-fc54-4ca8-b8e7-5411404fdb0d

(function($){ // block scope

    $.fn.log = function(msg){
        if (window.console || console.firebug){
            msg = msg || '';
            if(msg !== '') msg += ': ';
            console.log("%s%o", msg, this);
        }
        return this;
    };

})(jQuery);



On 10/19/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> I whipped up a demo using it.
> http://www.commadot.com/jquery/consoleLog.php
>
> I probably (definitely) overused it. :)
>
> Glen
>
>
> On 10/19/07, Nikola Ivanov <[EMAIL PROTECTED]> wrote:
> >
> >
> > How about integrating it in the core? After if ( console ) of course
> >
> >
>


-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/

Reply via email to