1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 22:37:58 +01:00

Replace expression closures (methods).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-07-23 01:55:32 +10:00
parent c035aa936b
commit 77d59cdfd1
45 changed files with 1595 additions and 1045 deletions

View File

@@ -341,8 +341,13 @@ var History = Module("history", {
completion.domain = context => {
context.anchored = false;
context.compare = (a, b) => String.localeCompare(a.key, b.key);
context.keys = { text: identity, description: identity,
key: function (host) host.split(".").reverse().join(".") };
context.keys = {
text: identity,
description: identity,
key: function (host) {
return host.split(".").reverse().join(".");
}
};
// FIXME: Schema-specific
context.generate = () => [