META-INF.assets.rjzjh.zrender.core.log.js Maven / Gradle / Ivy
define(
function (require) {
var config = require('../config');
/**
* @exports zrender/tool/log
* @author Kener (@Kener-林峰, [email protected])
*/
return function() {
if (config.debugMode === 0) {
return;
}
else if (config.debugMode == 1) {
for (var k in arguments) {
throw new Error(arguments[k]);
}
}
else if (config.debugMode > 1) {
for (var k in arguments) {
console.log(arguments[k]);
}
}
};
/* for debug
return function(mes) {
document.getElementById('wrong-message').innerHTML =
mes + ' ' + (new Date() - 0)
+ '
'
+ document.getElementById('wrong-message').innerHTML;
};
*/
}
);