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:
@@ -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 = () => [
|
||||
|
||||
Reference in New Issue
Block a user