Skip to content

Instantly share code, notes, and snippets.

@bpineda
Created April 17, 2013 03:47
Show Gist options
  • Save bpineda/5401653 to your computer and use it in GitHub Desktop.
Save bpineda/5401653 to your computer and use it in GitHub Desktop.
if(typeof console == "undefined")
{
var console = new Object();
console.log = function(){};
console.debug = function(){};
console.info = function(){};
console.warn = function(){};
console.error = function(){};
console.assert = function(){};
console.dir = function(){};
console.dirxml = function(){};
console.trace = function(){};
console.group = function(){};
console.groupCollapsed = function(){};
console.groupEnd = function(){};
console.time = function(){};
console.timeEnd = function(){};
console.profile = function(){};
console.profileEnd = function(){};
console.count = function(){};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment