mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 14:45:47 +01:00
Insomnia + anal retentive perfectionism = torrential simplification (and obstreperous, impetuous, sesquipedialian commits).
--HG-- branch : xslt
This commit is contained in:
@@ -1415,23 +1415,20 @@ const liberator = (function () //{{{
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
findHelpFile("all");
|
|
||||||
tagMap.all = "all";
|
|
||||||
|
|
||||||
const XSLT = XSLTProcessor("chrome://liberator/content/help.xsl");
|
const XSLT = XSLTProcessor("chrome://liberator/content/help.xsl");
|
||||||
for (let [, namespace] in Iterator(namespaces))
|
|
||||||
{
|
tagMap.all = "all";
|
||||||
let files = util.evaluateXPath(
|
let files = findHelpFile("all").map(function (doc)
|
||||||
"//liberator:include/@href",
|
util.evaluateXPath(
|
||||||
util.httpGet("chrome://" + namespace + "/locale/all.xml").responseXML);
|
"//liberator:include/@href", doc.responseXML));
|
||||||
for (let file in files)
|
|
||||||
findHelpFile(file.value).forEach(function (doc) {
|
util.Array.flatten(files).map(function ({ value: file }) {
|
||||||
doc = XSLT.transformToDocument(doc);
|
findHelpFile(file).forEach(function (doc) {
|
||||||
for (let elem in util.evaluateXPath("//liberator:tag/text()", doc))
|
doc = XSLT.transformToDocument(doc);
|
||||||
tagMap[elem.textContent] = file.value;
|
for (let elem in util.evaluateXPath("//liberator:tag/text()", doc))
|
||||||
});
|
tagMap[elem.textContent] = file;
|
||||||
}
|
});
|
||||||
|
});
|
||||||
|
|
||||||
services.get("liberator:").init({
|
services.get("liberator:").init({
|
||||||
HELP_TAGS: tagMap, FILE_MAP: fileMap,
|
HELP_TAGS: tagMap, FILE_MAP: fileMap,
|
||||||
|
|||||||
Reference in New Issue
Block a user