Add _module to Node object to provide module info

This commit is contained in:
Nick O'Leary
2022-01-12 11:07:25 +00:00
parent f8c47f59bc
commit ea43729063
2 changed files with 5 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ function createNode(flow,config) {
}
}
try {
Object.defineProperty(conf,'_module', {value: typeRegistry.getNodeInfo(type), enumerable: false, writable: true })
Object.defineProperty(conf,'_flow', {value: flow, enumerable: false, writable: true })
newNode = new nodeTypeConstructor(conf);
} catch (err) {