1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 02:42:28 +01:00

Another quick fix for DOM.Event.

Not really fixed in 5930524.
This commit is contained in:
Doug Kearns
2015-12-24 11:51:23 +11:00
parent 1d2bf51c1a
commit e16a993e99

View File

@@ -1081,10 +1081,11 @@ var DOM = Class("DOM", {
let params = DEFAULTS[t || "HTML"];
let args = Object.keys(params);
update(params, this.constructor.defaults[type]);
let props = {}; // FIXME
for (let p in opts)
if (p in params)
params[p] = opts[p];
props[p] = opts[p];
update(params, this.constructor.defaults[type], props);
apply(evt, "init" + t + "Event", args.map(arg => params[arg]));
return evt;