stabile/static/js/helpers/log.js @ master
1 |
dojo.provide('util.log'); |
---|---|
2 |
|
3 |
lg = function(){ window.console && window.console.log(Array.prototype.slice.call(arguments));}; |
4 |
er = function(){ window.console && window.console.error(Array.prototype.slice.call(arguments));}; |
5 |
|
6 |
if(typeof console == 'undefined'){ |
7 |
|
8 |
console = { |
9 |
log: function(){}, |
10 |
error: function(){} |
11 |
};
|
12 |
|
13 |
}
|