Skip to content

Instantly share code, notes, and snippets.

@tacone
Created June 3, 2013 12:19
Show Gist options
  • Save tacone/5697743 to your computer and use it in GitHub Desktop.
Save tacone/5697743 to your computer and use it in GitHub Desktop.
Firebug compat for IE
if (!console)
{
var console = {};
console.turnOff = function()
{
var api = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'trace', 'group', 'groupEnd', 'time', 'timeEnd', 'profile', 'profileEnd', 'count'];
for (var i = 0; i < api.length; i++)
console[ api[i] ] = function() {
};
console.firebug = "0.00";
};
console.turnOff();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment