Refactoring property definition code
This commit is contained in:
1 parent
a0f145ab3d
commit
17a95392a8
6 files changed
+79
-64
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user