]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/content/mappings.js
Import r6948 from upstream hg supporting Firefox up to 24.*
[dactyl.git] / common / content / mappings.js
index c272eb5f8d9c50b26bccb33de0a33207af9f9f2c..68bba94c6e9bed082211128e30069ddb5cf53b8e 100644 (file)
@@ -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 <Leader> pseudo-key",
-             function () { events.feedkeys("<Leader>") });
+             function () { events.feedkeys("<Leader>"); });
     }
 });
 
-// vim: set fdm=marker sw=4 ts=4 et:
+// vim: set fdm=marker sw=4 sts=4 ts=8 et: