Skip to content

Instantly share code, notes, and snippets.

@brianjmiller
Created August 22, 2013 12:49
Show Gist options
  • Save brianjmiller/6306715 to your computer and use it in GitHub Desktop.
Save brianjmiller/6306715 to your computer and use it in GitHub Desktop.
if (! DEBUG) {
if (! window.console) {
window.console = {};
}
methods = ["log", "debug", "warn", "info"];
for (i = 0; i < methods.length; i++) {
console[methods[i]] = function () {};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment