mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-24 19:33:43 +01:00
Add cache module. Cleanup help and DTD generation. Fix :help version generation issues. Fix other assorted issues.
This commit is contained in:
@@ -14,6 +14,7 @@ defineModule("config", {
|
||||
}, this);
|
||||
|
||||
this.lazyRequire("addons", ["AddonManager"]);
|
||||
this.lazyRequire("cache", ["cache"]);
|
||||
this.lazyRequire("highlight", ["highlight"]);
|
||||
this.lazyRequire("messages", ["_"]);
|
||||
|
||||
@@ -54,9 +55,11 @@ var ConfigBase = Class("ConfigBase", {
|
||||
"resource://dactyl-content/")));
|
||||
|
||||
this.timeout(function () {
|
||||
services["dactyl:"].pages.dtd = function () [null, util.makeDTD(config.dtd)];
|
||||
cache.register("config.dtd", function () util.makeDTD(config.dtd));
|
||||
});
|
||||
|
||||
services["dactyl:"].pages["dtd"] = function () [null, cache.get("config.dtd")];
|
||||
|
||||
update(services["dactyl:"].providers, {
|
||||
"locale": function (uri, path) LocaleChannel("dactyl-locale", config.locale, path, uri),
|
||||
"locale-local": function (uri, path) LocaleChannel("dactyl-local-locale", config.locale, path, uri)
|
||||
@@ -101,6 +104,7 @@ var ConfigBase = Class("ConfigBase", {
|
||||
global: ["addons",
|
||||
"base",
|
||||
"io",
|
||||
"cache",
|
||||
"commands",
|
||||
"completion",
|
||||
"config",
|
||||
|
||||
Reference in New Issue
Block a user