From 047cc83641a99b2bb04ad869f74056a53a75fe54 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 16 Feb 2014 21:56:57 +1100 Subject: [PATCH] Fix help index construction. --- common/content/dactyl.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index a3443e56..21d6bae4 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -278,10 +278,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { let results = array((params.iterateIndex || params.iterate).call(params, commands.get(name).newArgs())) .array.sort((a, b) => String.localeCompare(a.name, b.name)); - let haveTag = hasOwnProperty(help.tags); for (let obj in values(results)) { let res = dactyl.generateHelp(obj, null, null, true); - if (!haveTag(obj.helpTag)) + if (!hasOwnProperty(help.tags, obj.helpTag)) res[0][1].tag = obj.helpTag; yield res;