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