Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
18 lines
433 B
JavaScript
Executable file
18 lines
433 B
JavaScript
Executable file
/* exported DEBUGGING, debug */
|
|
'use strict';
|
|
|
|
var DEBUGGING = true;
|
|
|
|
function debug() {
|
|
var message = [];
|
|
for (var i = 0, len = arguments.length, obj; i < len; i++) {
|
|
obj = arguments[i];
|
|
message.push(typeof obj === 'object' ? JSON.stringify(obj) : obj);
|
|
}
|
|
if (window.dump) {
|
|
message.push('\n');
|
|
window.dump(message.join(' '));
|
|
} else if (console && console.log) {
|
|
console.log(message.join(' '));
|
|
}
|
|
}
|