mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 01:25:48 +01:00
Cleanup crufty apply code.
This commit is contained in:
@@ -1002,12 +1002,7 @@ var DOM = Class("DOM", {
|
||||
for (k in opts)
|
||||
if (k in params)));
|
||||
|
||||
// Because security boundaries :/
|
||||
let ary = new doc.defaultView.Array;
|
||||
for (let arg of args)
|
||||
ary.push(params[arg]);
|
||||
|
||||
evt["init" + t + "Event"].apply(evt, ary);
|
||||
apply(evt, "init" + t + "Event", args.map(arg => params[arg]));
|
||||
return evt;
|
||||
}
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user