mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 11:52:26 +01:00
Replace expression closures (getters).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -24,12 +24,14 @@ var Bookmark = Struct("url", "title", "icon", "post", "keyword", "tags", "charse
|
||||
var Keyword = Struct("keyword", "title", "icon", "url");
|
||||
Bookmark.defaultValue("icon", function () BookmarkCache.getFavicon(this.url));
|
||||
update(Bookmark.prototype, {
|
||||
get extra() [
|
||||
["keyword", this.keyword, "Keyword"],
|
||||
["tags", this.tags.join(", "), "Tag"]
|
||||
].filter(item => item[1]),
|
||||
get extra() {
|
||||
return [
|
||||
["keyword", this.keyword, "Keyword"],
|
||||
["tags", this.tags.join(", "), "Tag"]
|
||||
].filter(item => item[1]);
|
||||
},
|
||||
|
||||
get uri() newURI(this.url),
|
||||
get uri() { return newURI(this.url); },
|
||||
set uri(uri) {
|
||||
let tags = this.tags;
|
||||
this.tags = null;
|
||||
|
||||
Reference in New Issue
Block a user