From 0306515800da911612e359a980acf894cd4eac55 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 14 Nov 2008 15:30:58 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSdebug()=20:=20Correction=20pour=20rendre?= =?UTF-8?q?=20cette=20m=C3=A9thode=20compatible=20avec=20Opera=20et=20=09G?= =?UTF-8?q?oogle=20Chrome.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/js/functions.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/trunk/includes/js/functions.js b/trunk/includes/js/functions.js index c46dfa3c..fa6acfeb 100644 --- a/trunk/includes/js/functions.js +++ b/trunk/includes/js/functions.js @@ -1,9 +1,11 @@ var LSdebug_active = 0; -function LSdebug() { +function LSdebug(arguments) { if (LSdebug_active != 1) return; - if (typeof console == 'undefined') return; - console.log.apply(this, arguments); + if (typeof console != 'undefined') + console.log(arguments); + if (typeof opera != 'undefined') + opera.postError(arguments); } /**