Converting methods into properties where possible/reasonable

This commit is contained in:
Jeff Avallone committed 2014-12-17 14:44:48 -05:00
1 parent 4af524112e
commit e362a54551
16 files changed
+193 -220

No files matched your search

-14
View File
@@ -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) {