[Pale-Moon] Issue MoonchildProductions/UXP#1828 - Stop using js expression closures in Pale Moon front-end

Stop using non-standard JS expression closures in Pale Moon front-end.
This commit is contained in:
win7-7 2022-04-23 14:51:43 +03:00 • committed by roytam1
commit 264752661b
28 changed files with 244 additions and 149 deletions

View file

@ -34,7 +34,7 @@ var StarUI = {
get _blockedCommands() {
delete this._blockedCommands;
return this._blockedCommands =
["cmd_close", "cmd_closeWindow"].map(function(id) this._element(id), this);
["cmd_close", "cmd_closeWindow"].map(id => this._element(id));
},
_blockCommands: function() {
@ -1258,7 +1258,7 @@ var BookmarkingUI = {
// calls back. For such an edge case, retain all unique entries from both
// arrays.
this._itemIds = this._itemIds.filter(
function(id) aItemIds.indexOf(id) == -1
id => aItemIds.indexOf(id) == -1
).concat(aItemIds);
this._updateStar();