mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 12:17:59 +01:00
Replace expression closures (command/option/mapping definitions).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -208,11 +208,14 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
|
||||
commands: function initCommands(dactyl, modules, window) {
|
||||
commands.add(["o[pen]"],
|
||||
"Open one or more URLs in the current tab",
|
||||
function (args) { dactyl.open(args[0] || "about:blank"); },
|
||||
{
|
||||
completer: function (context) completion.url(context),
|
||||
domains: function (args) Ary.compact(dactyl.parseURLs(args[0] || "")
|
||||
.map(url => util.getHost(url))),
|
||||
function (args) {
|
||||
dactyl.open(args[0] || "about:blank");
|
||||
}, {
|
||||
completer: function (context) { completion.url(context); },
|
||||
domains: function (args) {
|
||||
return Ary.compact(dactyl.parseURLs(args[0] || "")
|
||||
.map(url => util.getHost(url)));
|
||||
},
|
||||
literal: 0,
|
||||
privateData: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user