mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 13:14:12 +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:
@@ -70,9 +70,13 @@ var MOW = Module("mow", {
|
||||
|
||||
get widget() { return this.widgets.multilineOutput; },
|
||||
|
||||
widgets: Class.Memoize(function widgets() commandline.widgets),
|
||||
widgets: Class.Memoize(function widgets() {
|
||||
return commandline.widgets;
|
||||
}),
|
||||
|
||||
body: Class.Memoize(function body() this.widget.contentDocument.documentElement),
|
||||
body: Class.Memoize(function body() {
|
||||
return this.widget.contentDocument.documentElement;
|
||||
}),
|
||||
get document() { return this.widget.contentDocument; },
|
||||
get window() { return this.widget.contentWindow; },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user