1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 15:54:12 +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

8
common/bootstrap.js vendored
View File

@@ -69,15 +69,15 @@ let JSMLoader = {
SANDBOX: Cu.nukeSandbox,
get addon() addon,
get addon() { return addon; },
currentModule: null,
factories: [],
get name() name,
get name() { return name; },
get module() moduleName,
get module() { return moduleName; },
globals: {},
modules: {},
@@ -192,7 +192,7 @@ let JSMLoader = {
},
// Cuts down on stupid, fscking url mangling.
get loadSubScript() bootstrap_jsm.loadSubScript,
get loadSubScript() { return bootstrap_jsm.loadSubScript; },
cleanup: function cleanup() {
for (let factory of this.factories.splice(0))