Converting methods into properties where possible/reasonable
This commit is contained in:
1 parent
4af524112e
commit
e362a54551
16 files changed
+193
-220
No files matched your search
@@ -11,20 +11,6 @@ export default class Node {
|
||||
this.elements = elements || [];
|
||||
|
||||
this.properties = properties;
|
||||
|
||||
// TEMPORARY
|
||||
_.forOwn(this.properties, (_, key) => {
|
||||
Object.defineProperty(this, key, {
|
||||
get: function() {
|
||||
return this.properties[key];
|
||||
},
|
||||
|
||||
set: function(value) {
|
||||
this.properties[key] = value;
|
||||
}
|
||||
});
|
||||
});
|
||||
// /TEMPORARY
|
||||
}
|
||||
|
||||
set module(mod) {
|
||||
|
||||
Reference in new issue
Block a user