1
0
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:
Doug Kearns
2011-01-24 14:44:08 +11:00
parent 162d9122b2
commit ca9aa5bd02

View File

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