mgz5tg
Last Updated: February 25, 2016
·
684
· kanuj

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() { } };
}