diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-10-06 18:08:07 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-10-06 18:08:07 -0400 |
commit | 8c98658e7434b36e6dcad1b0157e4d5e1f0ef001 (patch) | |
tree | 370a4ed3493d032e8a6ba0c2499db6d1bd440b54 /common/content/modules.js | |
parent | 312244c00c3187bbf63213effbd19991f41e51a6 (diff) | |
download | pentadactyl-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.js | 5 |
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() { |