1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 07:54:12 +01:00

Convert expression closures to arrow syntax.

This commit is contained in:
Doug Kearns
2013-09-15 00:42:51 +10:00
parent 6eeb0f50a2
commit 6ee830dfad
53 changed files with 702 additions and 703 deletions

View File

@@ -119,11 +119,11 @@ var Messages = Module("messages", {
}()).toArray();
file.write(
array(commands.allHives.map(function (h) properties("command", h)))
.concat(modes.all.map(function (m)
array(commands.allHives.map(h => properties("command", h)))
.concat(modes.all.map(m =>
properties("map", values(mappings.builtin.getStack(m)
.filter(function (map) map.modes[0] == m)))))
.concat(properties("mode", values(modes.all.filter(function (m) !m.hidden))))
.filter(map => map.modes[0] == m)))))
.concat(properties("mode", values(modes.all.filter(m => !m.hidden))))
.concat(properties("option", options))
.concat(properties("hintmode", values(hints.modes), "prompt"))
.concat(properties("pageinfo", values(Buffer.pageInfo), "title"))
@@ -168,7 +168,7 @@ var Messages = Module("messages", {
});
else
iter(value).forEach(function ([k, v]) {
memoize(value, k, function () messages.get([name, k].join("."), v));
memoize(value, k, () => messages.get([name, k].join("."), v));
});
}
@@ -187,7 +187,7 @@ var Messages = Module("messages", {
let { JavaScript } = modules;
JavaScript.setCompleter([this._, this.get, this.format], [
function (context) messages.iterate()
context => messages.iterate()
]);
JavaScript.setCompleter([this.export],