mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 16:27:31 +09:00
[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:
parent
e349f9b884
commit
264752661b
28 changed files with 244 additions and 149 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue