mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 17:05:47 +01:00
Don't attempt to expand non-existent abbreviations with Object property names.
This commit is contained in:
@@ -113,7 +113,7 @@ var Abbreviations = Module("abbreviations", {
|
|||||||
*/
|
*/
|
||||||
get: function (mode, lhs) {
|
get: function (mode, lhs) {
|
||||||
let abbrevs = this.abbrevs[mode];
|
let abbrevs = this.abbrevs[mode];
|
||||||
return abbrevs && abbrevs[lhs];
|
return abbrevs && abbrevs.hasOwnProperty(lhs) ? abbrevs[lhs] : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user