mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-15 22:44:13 +01:00
Replace expression closures (getters).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -448,7 +448,7 @@ var JavaScript = Module("javascript", {
|
||||
return this.evalled(key);
|
||||
},
|
||||
|
||||
get cache() this.context.cache,
|
||||
get cache() { return this.context.cache; },
|
||||
|
||||
complete: function _complete(context) {
|
||||
const self = this;
|
||||
@@ -695,7 +695,7 @@ var JavaScript = Module("javascript", {
|
||||
},
|
||||
completion: function (dactyl, modules, window) {
|
||||
update(modules.completion, {
|
||||
get javascript() modules.javascript.bound.complete,
|
||||
get javascript() { return modules.javascript.bound.complete; },
|
||||
javascriptCompleter: JavaScript // Backwards compatibility
|
||||
});
|
||||
},
|
||||
@@ -808,7 +808,7 @@ var JavaScript = Module("javascript", {
|
||||
|
||||
mode: modes.REPL,
|
||||
|
||||
get completionList() this.widgets.statusbar.commandline.id,
|
||||
get completionList() { return this.widgets.statusbar.commandline.id; },
|
||||
|
||||
accept: function accept() {
|
||||
dactyl.trapErrors(function () { this.repl.addOutput(this.command); }, this);
|
||||
|
||||
Reference in New Issue
Block a user