debug has flag to turn off all console.* methods firebug has override if console.* are missing
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
/*
|
|
********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* DATE: 2015/4/24
|
|
* DESCRIPTION:
|
|
* debug javascript
|
|
* HISTORY:
|
|
********************************************************************
|
|
*/
|
|
|
|
// if debug is set to true, console log messages are printed
|
|
var DEBUG = true;
|
|
if (!DEBUG)
|
|
{
|
|
$($H(window.console)).each(function(w) {
|
|
window.console[w.key] = function() {}
|
|
});
|
|
}
|