Stub out console.log for users that don't have firebug/developer tool installed.
It's bad practice (as I've learned this the hard way) to leave console.log (and friends) uncommented in production Javascript code. So stub it out like so:
if(typeof console === "undefined")
{
console = { log: function() { } };
}
Written by kanuj bhatnagar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Firebug
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#