console.log.apply is not a function

This commit is contained in:
James Campos 2011-08-31 04:00:59 -07:00
parent 847091048a
commit 35dbffa9e3
2 changed files with 6 additions and 4 deletions

View File

@ -148,8 +148,8 @@
}
};
if (typeof console !== "undefined" && console !== null) {
log = function() {
return console.log.apply(console, arguments);
log = function(arg) {
return console.log(arg);
};
}
if (!Object.keys) {

View File

@ -86,8 +86,10 @@ config =
# XXX chrome can't into `{log} = console`
if console?
log = ->
console.log arguments...
# XXX scriptish - console.log.apply is not a function
# https://github.com/scriptish/scriptish/issues/499
log = (arg) ->
console.log arg
# XXX opera cannot into Object.keys
if not Object.keys