From d7fbddd945560e457213a61458fa1fc13989d824 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 27 Jan 2011 22:17:34 -0500 Subject: [PATCH] Fix stupid error thrown on FF36 when trying to delete a nonexistent attribute from a DOM object. --- common/content/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/events.js b/common/content/events.js index 3b93df55..479898d7 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -992,7 +992,8 @@ var Events = Module("events", { */ input: function onInput(event) { - delete event.originalTarget.dactylKeyPress; + if (event.originalTarget.dactylKeyPress) + delete event.originalTarget.dactylKeyPress; }, // this keypress handler gets always called first, even if e.g.