1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-25 11:25:46 +01:00

Lazy load help files. Store command names in a map.

--HG--
branch : testing
This commit is contained in:
Kris Maglione
2010-06-10 01:16:36 -04:00
parent a6f90714e4
commit a14e5127df
3 changed files with 86 additions and 73 deletions

View File

@@ -597,6 +597,8 @@ lookup:
*/
source: function (filename, silent) {
let wasSourcing = this.sourcing;
liberator.dump("sourcing " + filename);
let time = Date.now();
try {
var file = File(filename);
this.sourcing = {
@@ -715,6 +717,7 @@ lookup:
liberator.echoerr(message);
}
finally {
liberator.dump("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
this.sourcing = wasSourcing;
}
},