make verbose logging switchable via a conditional
This commit is contained in:
parent
1c54af69a1
commit
d3e2a2f52e
@ -30,7 +30,11 @@ define([
|
|||||||
|
|
||||||
var debug = function (x) { console.log(x); },
|
var debug = function (x) { console.log(x); },
|
||||||
warn = function (x) { console.error(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
|
// verbose = function () {}; // comment out to enable verbose logging
|
||||||
|
|
||||||
// ------------------ Trapping Keyboard Events ---------------------- //
|
// ------------------ Trapping Keyboard Events ---------------------- //
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user