On Oct 22, 7:58 pm, leegorous <[email protected]> wrote:
> Hi,
>
> I use FB to do the logging things, but it will throw an error after FB
> disabled.
> And I want this, $.log = console.log, as shortcut.
> $.log = function() {}, when FB disabled.

if (window.console) $.log = console.log
else $.log = function() {}
jjb

>
> To do this, it need to know when FB is available or not, to switch to
> the right function.
> Can I do that?
>
> Leegorous

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to