1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-03 23:35:49 +01:00

Hello strange new syntax. Can we be friends?

This commit is contained in:
Kris Maglione
2013-08-21 22:55:55 -07:00
parent e5864bfd23
commit c89f3e0df5
21 changed files with 106 additions and 134 deletions

View File

@@ -250,18 +250,17 @@ var KeyProcessor = Class("KeyProcessor", {
},
execute: function execute(map, args)
let (self = this)
function execute() {
if (self.preExecute)
self.preExecute.apply(self, args);
() => {
if (this.preExecute)
this.preExecute.apply(this, args);
args.self = self.main.params.mappingSelf || self.main.mappingSelf || map;
let res = map.execute.call(map, args);
args.self = this.main.params.mappingSelf || this.main.mappingSelf || map;
let res = map.execute.call(map, args);
if (self.postExecute)
self.postExecute.apply(self, args);
return res;
},
if (this.postExecute)
this.postExecute.apply(this, args);
return res;
},
onKeyPress: function onKeyPress(event) {
if (event.skipmap)