1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 08:25:46 +01:00

More reliable Menu mode handling. Closes issue #335.

This commit is contained in:
Kris Maglione
2011-09-10 14:05:21 -04:00
parent 4d9a4b02a8
commit 525a575a72
3 changed files with 42 additions and 12 deletions

View File

@@ -821,8 +821,8 @@ var DOM = Class("DOM", {
};
opts = opts || {};
var t = this.constructor.types[type];
var evt = doc.createEvent((t || "HTML") + "Events");
var t = this.constructor.types[type] || "";
var evt = doc.createEvent(t + "Events");
let defaults = DEFAULTS[t || "HTML"];
update(defaults, this.constructor.defaults[type]);