summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-07 14:38:59 +0300
committerAndrew Dolgov <[email protected]>2010-11-07 14:38:59 +0300
commitf3f67c1b53d2d93486fc3c57253b8af4d5e7a0c7 (patch)
treec827d9cd0691bc843a4d15592c25fb1e1d4461b7 /functions.js
parent3fb63f75a29afe5b40436049b4e84271fe77c7de (diff)
remove old-style debugging
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js28
1 files changed, 3 insertions, 25 deletions
diff --git a/functions.js b/functions.js
index 8b4945edc..b9096706a 100644
--- a/functions.js
+++ b/functions.js
@@ -15,9 +15,9 @@ Array.prototype.remove = function(s) {
/* create console.log if it doesn't exist */
if (!window.console) console = {};
-console.log = console.log || function(msg) { debug(msg); };
-console.warn = console.warn || function(msg) { debug(msg); };
-console.error = console.error || function(msg) { debug(msg); };
+console.log = console.log || function(msg) { };
+console.warn = console.warn || function(msg) { };
+console.error = console.error || function(msg) { };
function exception_error(location, e, ext_info) {
var msg = format_exception_error(location, e);
@@ -1356,28 +1356,6 @@ function filterCR(e, f)
}
}
-var debug_last_class = "even";
-
-function debug(msg) {
-
- if (debug_last_class == "even") {
- debug_last_class = "odd";
- } else {
- debug_last_class = "even";
- }
-
- var c = $('debug_output');
- if (c && Element.visible(c)) {
- while (c.lastChild != 'undefined' && c.childNodes.length > 100) {
- c.removeChild(c.lastChild);
- }
-
- var ts = make_timestamp();
- c.innerHTML = "<li class=\"" + debug_last_class + "\"><span class=\"debugTS\">[" + ts + "]</span> " +
- msg + "</li>" + c.innerHTML;
- }
-}
-
function getInitParam(key) {
return init_params[key];
}