mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 23:45:45 +01:00
Fix options.dtd generation bug.
This commit is contained in:
@@ -42,7 +42,7 @@ var Tabs = Module("tabs", {
|
|||||||
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
|
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
|
||||||
if (contentDocument.readyState === "complete")
|
if (contentDocument.readyState === "complete")
|
||||||
dactyl.initDocument(contentDocument);
|
dactyl.initDocument(contentDocument);
|
||||||
});
|
}, 1000);
|
||||||
},
|
},
|
||||||
|
|
||||||
_alternates: Class.memoize(function () [config.tabbrowser.mCurrentTab, null]),
|
_alternates: Class.memoize(function () [config.tabbrowser.mCurrentTab, null]),
|
||||||
|
|||||||
@@ -752,7 +752,7 @@ var Options = Module("options", {
|
|||||||
services["dactyl:"].pages["options.dtd"] = function () [null,
|
services["dactyl:"].pages["options.dtd"] = function () [null,
|
||||||
util.makeDTD(
|
util.makeDTD(
|
||||||
iter(([["option", o.name, "default"].join("."),
|
iter(([["option", o.name, "default"].join("."),
|
||||||
o.type === "string" ? o.value.replace(/'/g, "''") :
|
o.type === "string" ? o.defaultValue.replace(/'/g, "''") :
|
||||||
o.value === true ? "on" :
|
o.value === true ? "on" :
|
||||||
o.value === false ? "off" : o.stringDefaultValue]
|
o.value === false ? "off" : o.stringDefaultValue]
|
||||||
for (o in self)),
|
for (o in self)),
|
||||||
|
|||||||
Reference in New Issue
Block a user