1
0
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:
Doug Kearns
2015-05-27 04:42:30 +10:00
parent ce82387cdd
commit 6e8040286a
48 changed files with 808 additions and 532 deletions

View File

@@ -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);