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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user