1
0
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:
Doug Kearns
2016-01-10 00:38:40 +11:00
parent f1752f1813
commit 4ee27ef728

View File

@@ -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) {