mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 04:17:59 +01:00
Remove redundant use of Option.validateCompleter.
This is run by default now. --HG-- extra : rebase_source : 5e8a58550a0c6c3c9fb0cc146bb6405009a24ade
This commit is contained in:
@@ -582,7 +582,6 @@ const Option = Class("Option", {
|
|||||||
throw ValueError(error);
|
throw ValueError(error);
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: Run this by default?
|
|
||||||
/**
|
/**
|
||||||
* Validates the specified <b>values</b> against values generated by the
|
* Validates the specified <b>values</b> against values generated by the
|
||||||
* option's completer function.
|
* option's completer function.
|
||||||
|
|||||||
@@ -782,8 +782,7 @@ const Player = Module("player", {
|
|||||||
["0", "Repeat none"],
|
["0", "Repeat none"],
|
||||||
["1", "Repeat one"],
|
["1", "Repeat one"],
|
||||||
["2", "Repeat all"]
|
["2", "Repeat all"]
|
||||||
],
|
]
|
||||||
validator: Option.validateCompleter
|
|
||||||
});
|
});
|
||||||
|
|
||||||
options.add(["shuffle"],
|
options.add(["shuffle"],
|
||||||
|
|||||||
@@ -883,8 +883,7 @@ const Mail = Module("mail", {
|
|||||||
"Set the archive folder",
|
"Set the archive folder",
|
||||||
"string", "Archive",
|
"string", "Archive",
|
||||||
{
|
{
|
||||||
completer: function (context) completion.mailFolder(context),
|
completer: function (context) completion.mailFolder(context)
|
||||||
validator: Option.validateCompleter
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: generate the possible values dynamically from the menu
|
// TODO: generate the possible values dynamically from the menu
|
||||||
@@ -907,8 +906,7 @@ const Mail = Module("mail", {
|
|||||||
["classic", "Classic View"],
|
["classic", "Classic View"],
|
||||||
["wide", "Wide View"],
|
["wide", "Wide View"],
|
||||||
["vertical", "Vertical View"]
|
["vertical", "Vertical View"]
|
||||||
],
|
]
|
||||||
validator: Option.validateCompleter
|
|
||||||
});
|
});
|
||||||
|
|
||||||
options.add(["smtpserver", "smtp"],
|
options.add(["smtpserver", "smtp"],
|
||||||
@@ -921,8 +919,7 @@ const Mail = Module("mail", {
|
|||||||
services.get("smtpService").defaultServer = server;
|
services.get("smtpService").defaultServer = server;
|
||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
completer: function (context) [[s.key, s.serverURI] for ([, s] in Iterator(mail.smtpServers))],
|
completer: function (context) [[s.key, s.serverURI] for ([, s] in Iterator(mail.smtpServers))]
|
||||||
validator: Option.validateCompleter
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/*options.add(["threads"],
|
/*options.add(["threads"],
|
||||||
|
|||||||
Reference in New Issue
Block a user