From 87329406557e39a3d3ca32f6060f4101bf369945 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 1 Feb 2011 16:56:31 +1100 Subject: [PATCH] Don't attempt to expand non-existent abbreviations with Object property names. --- common/content/abbreviations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/abbreviations.js b/common/content/abbreviations.js index d5239992..aa8558a8 100644 --- a/common/content/abbreviations.js +++ b/common/content/abbreviations.js @@ -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; }, /**