From 05944499fb4b71d18a470ba9cf33805f2d10e416 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Tue, 25 Aug 2009 16:19:39 +0200 Subject: [PATCH] =?utf8?q?Dodanie=20obs=C5=82ugi=20wielu=20argument=C3=B3?= =?utf8?q?=C5=82=20do=20$.log.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/jquery.logging.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/project/static/js/jquery.logging.js b/project/static/js/jquery.logging.js index 02e10e40..9a7fbe02 100644 --- a/project/static/js/jquery.logging.js +++ b/project/static/js/jquery.logging.js @@ -5,23 +5,18 @@ const LOG_LEVEL = LEVEL_DEBUG; - var mozillaLog = function(msg) { - if (console) console.log(msg); + var mozillaLog = function() { + if (window.console) console.log.apply(this, arguments); }; - var operaLog = function(msg) { - opera.postError(msg); + var operaLog = function() { + opera.postError.(arguments.join(' ')); }; - var defaultLog = function(msg) { return false; }; + var defaultLog = function() { return false; }; - $.log = function(message, level) { - if (level == null) level = LEVEL_INFO; - if (message == null) message = 'TRACE'; - if (level < LOG_LEVEL) - return false; - - return $.log.browserLog(message); + $.log = function( ) { + return $.log.browserLog.apply(this, arguments); }; if ($.browser.mozilla || $.browser.safari) -- 2.20.1