1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 14:45:45 +01:00

Don't attempt to expand non-existent abbreviations with Object property names.

This commit is contained in:
Doug Kearns
2011-02-01 16:56:31 +11:00
parent 2e8fd518a4
commit 8732940655

View File

@@ -113,7 +113,7 @@ var Abbreviations = Module("abbreviations", {
*/
get: function (mode, lhs) {
let abbrevs = this.abbrevs[mode];
return abbrevs && abbrevs[lhs];
return abbrevs && abbrevs.hasOwnProperty(lhs) ? abbrevs[lhs] : null;
},
/**