mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 15:28:00 +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:
@@ -289,7 +289,9 @@ var CommandWidgets = Class("CommandWidgets", {
|
||||
yield elem;
|
||||
},
|
||||
|
||||
completionContainer: Class.Memoize(function () this.completionList.parentNode),
|
||||
completionContainer: Class.Memoize(function () {
|
||||
return this.completionList.parentNode;
|
||||
}),
|
||||
|
||||
contextMenu: Class.Memoize(function () {
|
||||
["copy", "copylink", "selectall"].forEach(function (tail) {
|
||||
@@ -304,10 +306,11 @@ var CommandWidgets = Class("CommandWidgets", {
|
||||
return document.getElementById("dactyl-contextmenu");
|
||||
}),
|
||||
|
||||
multilineOutput: Class.Memoize(function () this._whenReady("dactyl-multiline-output",
|
||||
elem => {
|
||||
highlight.highlightNode(elem.contentDocument.body, "MOW");
|
||||
}), true),
|
||||
multilineOutput: Class.Memoize(function () {
|
||||
return this._whenReady("dactyl-multiline-output", elem => {
|
||||
highlight.highlightNode(elem.contentDocument.body, "MOW");
|
||||
});
|
||||
}, true),
|
||||
|
||||
multilineInput: Class.Memoize(() => document.getElementById("dactyl-multiline-input")),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user