summaryrefslogtreecommitdiff
path: root/common/content/modules.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-10-06 18:08:07 -0400
committerKris Maglione <maglione.k@gmail.com>2010-10-06 18:08:07 -0400
commit8c98658e7434b36e6dcad1b0157e4d5e1f0ef001 (patch)
tree370a4ed3493d032e8a6ba0c2499db6d1bd440b54 /common/content/modules.js
parent312244c00c3187bbf63213effbd19991f41e51a6 (diff)
downloadpentadactyl-8c98658e7434b36e6dcad1b0157e4d5e1f0ef001.tar.gz
Finish moving dactyl.dump to util from last commit, and store the last 15 intercepted stack traces.
Diffstat (limited to 'common/content/modules.js')
-rw-r--r--common/content/modules.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/content/modules.js b/common/content/modules.js
index ad383e4f..bf0acd60 100644
--- a/common/content/modules.js
+++ b/common/content/modules.js
@@ -82,7 +82,6 @@ window.addEventListener("load", function onLoad() {
});
});
- function dump(str) window.dump(String.replace(str, /\n?$/, "\n").replace(/^/m, services.get("dactyl:").name + ": "));
const start = Date.now();
const deferredInit = { load: [] };
const seen = set();
@@ -136,7 +135,7 @@ window.addEventListener("load", function onLoad() {
fn();
}
catch (e) {
- dump("Loading " + (module && module.className) + ": " + e + "\n" + (e.stack || ""));
+ util.dump("Loading " + (module && module.className) + ": " + e + "\n" + (e.stack || ""));
}
return modules[module.className];
}
@@ -145,7 +144,7 @@ window.addEventListener("load", function onLoad() {
deferredInit["load"].forEach(call);
modules.times = update({}, defineModule.times);
- dump("Loaded in " + (Date.now() - start) + "ms");
+ util.dump("Loaded in " + (Date.now() - start) + "ms");
}, false);
window.addEventListener("unload", function onUnload() {