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:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user