X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=common%2Fcontent%2Fmappings.js;h=68bba94c6e9bed082211128e30069ddb5cf53b8e;hb=3d837eb266a3a01d424192aa4ec1a167366178c5;hp=c272eb5f8d9c50b26bccb33de0a33207af9f9f2c;hpb=d8a3bcebff36df7b128b36e0b57b715479e155a0;p=dactyl.git diff --git a/common/content/mappings.js b/common/content/mappings.js index c272eb5..68bba94 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -123,8 +123,7 @@ var Map = Class("Map", { contexts.context, args); - let self = this; - function repeat() self.action(args) + let repeat = () => this.action(args); if (this.names[0] != ".") // FIXME: Kludge. mappings.repeat = repeat; @@ -496,7 +495,7 @@ var Mappings = Module("mappings", { ["td", {}, modeSign], ["td", {}, name], ["td", {}, map.rhs || map.action.toSource()]])), - ["tr", { style: "height: .5ex;" }]])] + ["tr", { style: "height: .5ex;" }]])]; // E4X-FIXME // // TODO: Move this to an ItemList to show this automatically @@ -572,7 +571,7 @@ var Mappings = Module("mappings", { options: [ { names: ["-arg", "-a"], - description: "Accept an argument after the requisite key press", + description: "Accept an argument after the requisite key press" }, { names: ["-builtin", "-b"], @@ -828,8 +827,8 @@ var Mappings = Module("mappings", { mappings: function initMappings(dactyl, modules, window) { mappings.add([modes.COMMAND], ["\\"], "Emits pseudo-key", - function () { events.feedkeys("") }); + function () { events.feedkeys(""); }); } }); -// vim: set fdm=marker sw=4 ts=4 et: +// vim: set fdm=marker sw=4 sts=4 ts=8 et: