diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-02 19:49:13 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-02 19:49:13 -0500 |
commit | 3ef94f586117a8385b43e144cdafedf1283145ff (patch) | |
tree | e492fdadc39741a1ebb92ea98439432def327484 /common | |
parent | 7605c0ed54b1d56ec9b99d25a9c2ccea42d2108b (diff) | |
download | pentadactyl-3ef94f586117a8385b43e144cdafedf1283145ff.tar.gz |
Fix mappings.getCandidates(). Closes issue #227.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/mappings.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/mappings.js b/common/content/mappings.js index f357d6ec..d817847a 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -276,7 +276,7 @@ var Mappings = Module("mappings", { */ getCandidates: function (mode, prefix) this._user[mode].concat(this._main[mode]) - .filter(function (map) map.names.some( + .filter(function (map) map.keys.some( function (name) name.indexOf(prefix) == 0 && name.length > prefix.length && (prefix != "<" || !/^<.+>/.test(name)))), |