better logging
This commit is contained in:
parent
a98a45480c
commit
3b9346db04
@ -167,8 +167,8 @@
|
|||||||
}
|
}
|
||||||
})(null, config);
|
})(null, config);
|
||||||
if (typeof console !== "undefined" && console !== null) {
|
if (typeof console !== "undefined" && console !== null) {
|
||||||
log = function(arg) {
|
log = function() {
|
||||||
return console.log(arg);
|
return console.log.apply(console, arguments);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (!Object.keys) {
|
if (!Object.keys) {
|
||||||
|
|||||||
@ -98,8 +98,8 @@ conf = {}
|
|||||||
|
|
||||||
# XXX chrome can't into `{log} = console`
|
# XXX chrome can't into `{log} = console`
|
||||||
if console?
|
if console?
|
||||||
log = (arg) ->
|
log = ->
|
||||||
console.log arg
|
console.log arguments...
|
||||||
|
|
||||||
# XXX opera cannot into Object.keys
|
# XXX opera cannot into Object.keys
|
||||||
if not Object.keys
|
if not Object.keys
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user