Skip to content

Instantly share code, notes, and snippets.

@cuth
Last active August 29, 2015 14:01
Show Gist options
  • Save cuth/588b7dae7fa4f0b755c1 to your computer and use it in GitHub Desktop.
Save cuth/588b7dae7fa4f0b755c1 to your computer and use it in GitHub Desktop.
Console Dummy (https://github.com/andyet/ConsoleDummy.js) to fit my personal jshint requirements.
(function (con) {
'use strict';
function dummy() {}
['error','info','log','warn'].forEach(function (func) {
con[func] = con[func] || dummy;
});
}(window.console = window.console || {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment