1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:32:27 +01:00

Refactor cache module to avoid using zip store for smaller items.

This commit is contained in:
Kris Maglione
2014-02-17 13:13:41 -08:00
parent 94a0f80efe
commit 3d925be093
7 changed files with 75 additions and 58 deletions

View File

@@ -1250,7 +1250,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
["toc", { start: "2" }],
body]);
});
}, true);
cache.register("help/index.xml", function () {
return '<?xml version="1.0"?>\n' +
@@ -1259,7 +1259,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
["dl", { insertafter: name + "-index" },
template.map(iter(), util.identity)],
"\n\n")]);
});
}, true);
cache.register("help/gui.xml", function () {
return '<?xml version="1.0"?>\n' +
@@ -1271,7 +1271,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
["dd", {}, val[0]]]
: undefined,
"\n")]]);
});
}, true);
cache.register("help/privacy.xml", function () {
return '<?xml version="1.0"?>\n' +
@@ -1284,7 +1284,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
[["dt", {}, name],
["dd", {}, template.linkifyHelp(description, true)]],
"\n")]]);
});
}, true);
},
events: function initEvents() {
events.listen(window, dactyl, "events", true);