mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 03:04:12 +01:00
Cleanup crufty apply code.
This commit is contained in:
@@ -252,13 +252,13 @@ var KeyProcessor = Class("KeyProcessor", {
|
||||
execute: function execute(map, args)
|
||||
() => {
|
||||
if (this.preExecute)
|
||||
this.preExecute.apply(this, args);
|
||||
apply(this, "preExecute", args);
|
||||
|
||||
args.self = this.main.params.mappingSelf || this.main.mappingSelf || map;
|
||||
let res = map.execute.call(map, args);
|
||||
|
||||
if (this.postExecute)
|
||||
this.postExecute.apply(this, args);
|
||||
apply(this, "postExecute", args);
|
||||
return res;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user