diff --git a/common/content/mappings.js b/common/content/mappings.js index 50cea553..1d20f2d7 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -383,9 +383,7 @@ var Mappings = Module("mappings", { * @param {string} cmd The map name to match. * @returns {Map} */ - get: function get(mode, cmd) { - return this.hives.nth(function (h) h.get(mode, command), 0); - }, + get: function get(mode, cmd) this.hives.map(function (h) h.get(mode, cmd)).compact()[0] || null, /** * Returns an array of maps with names starting with but not equal to