mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-28 02:45:46 +01:00
Hello strange new syntax. Can we be friends?
This commit is contained in:
@@ -19,8 +19,6 @@ var Const = function Const(val) Class.Property({ enumerable: true, value: val })
|
||||
|
||||
var Group = Class("Group", {
|
||||
init: function init(name, description, filter, persist) {
|
||||
const self = this;
|
||||
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.filter = filter || this.constructor.defaultFilter;
|
||||
@@ -171,13 +169,12 @@ var Contexts = Module("contexts", {
|
||||
Hives: Class("Hives", Class.Property, {
|
||||
init: function init(name, constructor) {
|
||||
const { contexts } = modules;
|
||||
const self = this;
|
||||
|
||||
if (this.Hive)
|
||||
return {
|
||||
enumerable: true,
|
||||
|
||||
get: function () array(contexts.groups[self.name])
|
||||
get: () => array(contexts.groups[this.name])
|
||||
};
|
||||
|
||||
this.Hive = constructor;
|
||||
|
||||
Reference in New Issue
Block a user