mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 11:47:58 +01:00
Fix mappings.get.
This commit is contained in:
@@ -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