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

Replace expression closures (function expressions).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-05-26 03:38:58 +10:00
parent 34bfc2f50f
commit ce82387cdd
35 changed files with 182 additions and 184 deletions

View File

@@ -134,7 +134,7 @@ var CompletionContext = Class("CompletionContext", {
this.filterFunc = function filterFunc(items) {
return this.filters
.reduce((res, filter) =>
res.filter((item) => filter.call(this, item)),
res.filter(item => filter.call(this, item)),
items);
};
/**
@@ -738,9 +738,9 @@ var CompletionContext = Class("CompletionContext", {
split: function split(name, obj, fn, ...args) {
let context = this.fork(name);
let alias = (prop) => {
let alias = prop => {
context.__defineGetter__(prop, () => this[prop]);
context.__defineSetter__(prop, (val) => this[prop] = val);
context.__defineSetter__(prop, val => this[prop] = val);
};
alias("_cache");
alias("_completions");