mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 02:35:47 +01:00
Refactor cache module to avoid using zip store for smaller items.
This commit is contained in:
@@ -826,17 +826,18 @@ var Options = Module("options", {
|
||||
opt.set(opt.globalValue, Option.SCOPE_GLOBAL, true);
|
||||
}, window);
|
||||
|
||||
modules.cache.register("options.dtd", () =>
|
||||
util.makeDTD(
|
||||
iter(([["option", o.name, "default"].join("."),
|
||||
o.type === "string" ? o.defaultValue.replace(/'/g, "''") :
|
||||
o.defaultValue === true ? "on" :
|
||||
o.defaultValue === false ? "off" : o.stringDefaultValue]
|
||||
for (o in self)),
|
||||
modules.cache.register("options.dtd",
|
||||
() => util.makeDTD(
|
||||
iter(([["option", o.name, "default"].join("."),
|
||||
o.type === "string" ? o.defaultValue.replace(/'/g, "''") :
|
||||
o.defaultValue === true ? "on" :
|
||||
o.defaultValue === false ? "off" : o.stringDefaultValue]
|
||||
for (o in self)),
|
||||
|
||||
([["option", o.name, "type"].join("."), o.type] for (o in self)),
|
||||
([["option", o.name, "type"].join("."), o.type] for (o in self)),
|
||||
|
||||
config.dtd)));
|
||||
config.dtd)),
|
||||
true);
|
||||
},
|
||||
|
||||
signals: {
|
||||
|
||||
Reference in New Issue
Block a user