mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 22:22:28 +01:00
Fix command related JavaScript completers.
This commit is contained in:
@@ -1911,11 +1911,15 @@ var Commands = Module("commands", {
|
||||
setCompleter([CommandHive.prototype.get,
|
||||
CommandHive.prototype.remove],
|
||||
[function () {
|
||||
return Array.from(this, cmd => [c.names, c.description]);
|
||||
return Array.from(this,
|
||||
cmd => [cmd.names,
|
||||
cmd.description]);
|
||||
}]);
|
||||
setCompleter([Commands.prototype.get],
|
||||
[function () {
|
||||
return Array.from(this.iterator(), cmd => [c.names, c.description]);
|
||||
return Array.from(this.iterator(),
|
||||
cmd => [cmd.names,
|
||||
cmd.description]);
|
||||
}]);
|
||||
},
|
||||
mappings: function initMappings(dactyl, modules, window) {
|
||||
|
||||
Reference in New Issue
Block a user