mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add _path property to nodes and expose as node.path in Function node
This commit is contained in:
@@ -62,6 +62,9 @@ function Node(n) {
|
||||
if (n._module) {
|
||||
Object.defineProperty(this,'_module', {value: n._module, enumerable: false, writable: true })
|
||||
}
|
||||
if (n._path) {
|
||||
Object.defineProperty(this,'_path', {value: n._path, enumerable: false, writable: true })
|
||||
}
|
||||
this.updateWires(n.wires);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user