fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
18691ef
)
Dodanie obsługi wielu argumentół do $.log.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 25 Aug 2009 14:19:39 +0000
(16:19 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 25 Aug 2009 14:19:39 +0000
(16:19 +0200)
project/static/js/jquery.logging.js
patch
|
blob
|
history
diff --git
a/project/static/js/jquery.logging.js
b/project/static/js/jquery.logging.js
index
02e10e4
..
9a7fbe0
100644
(file)
--- a/
project/static/js/jquery.logging.js
+++ b/
project/static/js/jquery.logging.js
@@
-5,23
+5,18
@@
const LOG_LEVEL = LEVEL_DEBUG;
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)
};
if ($.browser.mozilla || $.browser.safari)