mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-21 16:05:43 +02:00
Fix mappings.get.
This commit is contained in:
1 parent
162d9122b2
commit
ca9aa5bd02
1 file changed
+1
-3
@@ -383,9 +383,7 @@ var Mappings = Module("mappings", {
|
|||||||
* @param {string} cmd The map name to match.
|
* @param {string} cmd The map name to match.
|
||||||
* @returns {Map}
|
* @returns {Map}
|
||||||
*/
|
*/
|
||||||
get: function get(mode, cmd) {
|
get: function get(mode, cmd) this.hives.map(function (h) h.get(mode, cmd)).compact()[0] || null,
|
||||||
return this.hives.nth(function (h) h.get(mode, command), 0);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array of maps with names starting with but not equal to
|
* Returns an array of maps with names starting with but not equal to
|
||||||
|
|||||||
Reference in new issue
Block a user