mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 02:34:11 +01:00
Replace expression closures (getters).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -176,11 +176,15 @@ var Modules = function Modules(window) {
|
||||
|
||||
newContext: newContext,
|
||||
|
||||
get ownPropertyValues() Ary.compact(
|
||||
get ownPropertyValues() {
|
||||
return Ary.compact(
|
||||
Object.getOwnPropertyNames(this)
|
||||
.map(name => Object.getOwnPropertyDescriptor(this, name).value)),
|
||||
.map(name => Object.getOwnPropertyDescriptor(this, name).value));
|
||||
},
|
||||
|
||||
get moduleList() this.ownPropertyValues.filter(mod => (mod instanceof this.ModuleBase || mod.isLocalModule))
|
||||
get moduleList() {
|
||||
return this.ownPropertyValues.filter(mod => (mod instanceof this.ModuleBase || mod.isLocalModule));
|
||||
}
|
||||
});
|
||||
|
||||
modules.plugins = create(modules);
|
||||
|
||||
Reference in New Issue
Block a user