summaryrefslogtreecommitdiff
path: root/frontend/gamma/js/MochiKit/Logging.js
authorGiulio Cesare Solaroli <giulio.cesare@solaroli.it>2012-03-17 21:18:52 (UTC)
committer Giulio Cesare Solaroli <giulio.cesare@solaroli.it>2012-03-17 21:18:52 (UTC)
commit288b8df03a499a2e68ebaad48e687d1eac9df0ff (patch) (side-by-side diff)
tree1fcaefffee8366b548465a05a6c4cba0c31e131d /frontend/gamma/js/MochiKit/Logging.js
parent6f7ead0446aae6dd9f40b183e402b059a33d0517 (diff)
parent25029b943781850c76fbf43827af0204f35a98bf (diff)
downloadclipperz-288b8df03a499a2e68ebaad48e687d1eac9df0ff.zip
clipperz-288b8df03a499a2e68ebaad48e687d1eac9df0ff.tar.gz
clipperz-288b8df03a499a2e68ebaad48e687d1eac9df0ff.tar.bz2
Merge pull request #34 from gcsolaroli/master
Fixed some resources
Diffstat (limited to 'frontend/gamma/js/MochiKit/Logging.js') (more/less context) (ignore whitespace changes)
-rw-r--r--frontend/gamma/js/MochiKit/Logging.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/gamma/js/MochiKit/Logging.js b/frontend/gamma/js/MochiKit/Logging.js
index f00996b..8b06e0b 100644
--- a/frontend/gamma/js/MochiKit/Logging.js
+++ b/frontend/gamma/js/MochiKit/Logging.js
@@ -1,23 +1,23 @@
/***
MochiKit.Logging 1.5
See <http://mochikit.com/> for documentation, downloads, license, etc.
(c) 2005 Bob Ippolito. All rights Reserved.
***/
-MochiKit.Base._module('Logging', '1.5', ['Base']);
+MochiKit.Base.module(MochiKit, 'Logging', '1.5', ['Base']);
/** @id MochiKit.Logging.LogMessage */
MochiKit.Logging.LogMessage = function (num, level, info) {
this.num = num;
this.level = level;
this.info = info;
this.timestamp = new Date();
};
MochiKit.Logging.LogMessage.prototype = {
/** @id MochiKit.Logging.LogMessage.prototype.repr */
repr: function () {
@@ -178,25 +178,25 @@ MochiKit.Logging.Logger.prototype = {
firstMsg = Math.max(0, this._messages.length - howMany);
}
return this._messages.slice(firstMsg);
},
/** @id MochiKit.Logging.Logger.prototype.getMessageText */
getMessageText: function (howMany) {
if (typeof(howMany) == 'undefined' || howMany === null) {
howMany = 30;
}
var messages = this.getMessages(howMany);
if (messages.length) {
- var lst = map(function (m) {
+ var lst = MochiKit.Base.map(function (m) {
return '\n [' + m.num + '] ' + m.level + ': ' + m.info.join(' ');
}, messages);
lst.unshift('LAST ' + messages.length + ' MESSAGES:');
return lst.join('');
}
return '';
},
/** @id MochiKit.Logging.Logger.prototype.debuggingBookmarklet */
debuggingBookmarklet: function (inline) {
if (typeof(MochiKit.LoggingPane) == "undefined") {
alert(this.getMessageText());