On Nov 25, 9:13 am, kamenjar <[email protected]> wrote:
> I understand that there may be technical issues that revolve around
> the browser, but the fact that this breaks all my code that uses
> console and no way for me to protect against it is a problem. I mean,
> console is not defined -- fine, but how should I write my code so it
> doesn't error out? I thought that if(console) was safe enough check.

Oh, then check for 'window.console':
        if (window.console && typeof console.log == "function")
            console.log("Hello world");
Sadly the expression
        if (console)
fails at compile time.

jjb

--

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