From 35dbffa9e355895594b0df37e9bd4253c78be2cd Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 31 Aug 2011 04:00:59 -0700 Subject: [PATCH] console.log.apply is not a function --- 4chan_x.user.js | 4 ++-- script.coffee | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 844c05e57..1a79a5638 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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) { diff --git a/script.coffee b/script.coffee index e748d91d9..fcdf0660d 100644 --- a/script.coffee +++ b/script.coffee @@ -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