Refactoring property definition code

This commit is contained in:
Jeff Avallone committed 2014-12-17 16:04:55 -05:00
1 parent a0f145ab3d
commit 17a95392a8
6 files changed
+79 -64

No files matched your search

+5
View File
@@ -15,9 +15,14 @@ export default class Node {
set module(mod) {
_.extend(this, mod);
if (this.setup) {
this.setup();
}
_.forOwn(this.definedProperties || {}, (methods, name) => {
Object.defineProperty(this, name, methods);
});
}
set container(container) {