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:
8
common/bootstrap.js
vendored
8
common/bootstrap.js
vendored
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user