mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 08:05:46 +01:00
Replace expression closures (getters).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
var History = Module("history", {
|
||||
SORT_DEFAULT: "-date",
|
||||
|
||||
get format() bookmarks.format,
|
||||
get format() { return bookmarks.format; },
|
||||
|
||||
get service() services.history,
|
||||
get service() { return services.history; },
|
||||
|
||||
get: function get(filter, maxItems, sort=this.SORT_DEFAULT) {
|
||||
if (isString(filter))
|
||||
@@ -310,7 +310,7 @@ var History = Module("history", {
|
||||
jumps = jumps.locations.map(l => ({
|
||||
__proto__: l,
|
||||
title: buffer.title,
|
||||
get URI() util.newURI(this.location)
|
||||
get URI() { return util.newURI(this.location); }
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user