I\'m using the:
console.log()
method to log messages to firefox (3.6.6)/firebug while working on my webapp. When I view the app locally, it w
The console object is not defined in FF unless Firebug is open.
In Chrome it's always defined.
One way to handle it is to define it if it is not defined:
if(!window.console) console = {log: function() {}};