make verbose logging switchable via a conditional

This commit is contained in:
ansuz 2016-03-07 11:59:36 +01:00
parent 1c54af69a1
commit d3e2a2f52e

View File

@ -30,7 +30,11 @@ define([
var debug = function (x) { console.log(x); },
warn = function (x) { console.error(x); },
verbose = function (x) { console.log(x); };
verbose = function (x) {
if (window.verboseLogging) {
console.log(x);
}
};
// verbose = function () {}; // comment out to enable verbose logging
// ------------------ Trapping Keyboard Events ---------------------- //