1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-11 23:45:45 +01:00

add :optionusage command

This commit is contained in:
Doug Kearns
2008-10-04 16:45:16 +00:00
parent 7275233327
commit 7cd9f28279
4 changed files with 44 additions and 6 deletions

View File

@@ -862,8 +862,9 @@ liberator.Options = function () //{{{
__iterator__: function ()
{
for (let i = 0; i < options.length; i++)
yield options[i];
let sorted = options.sort(function (opt1, opt2) opt1.name > opt2.name);
for (let i = 0; i < sorted.length; i++)
yield sorted[i];
},
add: function (names, description, type, defaultValue, extraInfo)