Hi devs,
I'd like to commit a console.log wrapper in xwiki.js that does some
checking before logging, in the spirit of
http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
Something like :
var XWiki = {
//snip
/**
* console#log wrapper for your developer own convenience
*/
log: function(){
if(typeof console != "undefined"){
console.log( Array.prototype.slice.call(arguments) );
}
},
// snip
}
WDYT ?
Jerome