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