mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 09:54:11 +01:00
Replace expression closures (function expressions - named and dynamic this).
Expression closures are to be axed. See https://bugzil.la/1083458. Leaving deprecated() and literal() calls and method shorthand syntax conversions until after the ESR overlap.
This commit is contained in:
@@ -659,7 +659,10 @@ var Bookmarks = Module("bookmarks", {
|
||||
context.format = bookmarks.format;
|
||||
iter(extra).forEach(function ([k, v]) {
|
||||
if (v != null)
|
||||
context.filters.push(function (item) item.item[k] != null && this.matchString(v, item.item[k]));
|
||||
context.filters.push(function (item) {
|
||||
return item.item[k] != null &&
|
||||
this.matchString(v, item.item[k]);
|
||||
});
|
||||
});
|
||||
context.generate = () => values(bookmarkcache.bookmarks);
|
||||
completion.urls(context, tags);
|
||||
|
||||
Reference in New Issue
Block a user