Added different logging style when running in browser.

This commit is contained in:
Stefan Thomas
2012-11-26 15:12:15 -08:00
parent 6aa468f174
commit 49ac818e28
3 changed files with 24 additions and 9 deletions

7
src/js/utils.web.js Normal file
View File

@@ -0,0 +1,7 @@
exports = module.exports = require('./utils.js');
// We override this function for browsers, because they print objects nicer
// natively than JSON.stringify can.
exports.logObject = function (msg, obj) {
console.log(msg, "", obj);
};