1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 00:54:12 +01:00

Fix stupid error thrown on FF36 when trying to delete a nonexistent attribute from a DOM object.

This commit is contained in:
Kris Maglione
2011-01-27 22:17:34 -05:00
parent d16c0b0d06
commit d7fbddd945

View File

@@ -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.