X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fkey-processors.js;h=08cc401a8f4c2badabf0592dbd3977b6639fe89c;hb=3d837eb266a3a01d424192aa4ec1a167366178c5;hp=aa1e016df8d8ae3db8ce6ae5b387fdcf22483b46;hpb=8b6fcae7eaa413bc62d645d2d0c99835c47265e6;p=dactyl.git diff --git a/common/content/key-processors.js b/common/content/key-processors.js index aa1e016..08cc401 100644 --- a/common/content/key-processors.js +++ b/common/content/key-processors.js @@ -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) @@ -322,3 +321,4 @@ var KeyArgProcessor = Class("KeyArgProcessor", KeyProcessor, { } }); +// vim: set fdm=marker sw=4 sts=4 ts=8 et: