From b88420108e70e8400d685919ed3c9339fc572dcb Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 27 Oct 2009 20:00:59 -0400 Subject: [PATCH] Fix recently broken help system. --HG-- branch : xslt --- common/content/liberator.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/content/liberator.js b/common/content/liberator.js index c92f54b9..a4e53137 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -1419,10 +1419,11 @@ const liberator = (function () //{{{ tagMap.all = "all"; let files = findHelpFile("all").map(function (doc) - util.evaluateXPath( - "//liberator:include/@href", doc.responseXML)); + [f.value for (f in util.evaluateXPath( + "//liberator:include/@href", doc))]); - util.Array.flatten(files).map(function ({ value: file }) { + util.Array.flatten(files).map(function (file) { + liberator.dump("file:", file); findHelpFile(file).forEach(function (doc) { doc = XSLT.transformToDocument(doc); for (let elem in util.evaluateXPath("//liberator:tag/text()", doc))