1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 20:24:12 +01:00

Fix help index construction.

This commit is contained in:
Doug Kearns
2014-02-16 21:56:57 +11:00
parent 6ad90c9593
commit 047cc83641

View File

@@ -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())) let results = array((params.iterateIndex || params.iterate).call(params, commands.get(name).newArgs()))
.array.sort((a, b) => String.localeCompare(a.name, b.name)); .array.sort((a, b) => String.localeCompare(a.name, b.name));
let haveTag = hasOwnProperty(help.tags);
for (let obj in values(results)) { for (let obj in values(results)) {
let res = dactyl.generateHelp(obj, null, null, true); let res = dactyl.generateHelp(obj, null, null, true);
if (!haveTag(obj.helpTag)) if (!hasOwnProperty(help.tags, obj.helpTag))
res[0][1].tag = obj.helpTag; res[0][1].tag = obj.helpTag;
yield res; yield res;