1
0
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:
Kris Maglione
2015-02-21 22:43:41 -08:00
parent 7ee579200f
commit 1ee5668cac
26 changed files with 65 additions and 69 deletions

View File

@@ -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;
},