mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #3371 from node-red/node-alias
Add _path property to nodes and expose as node.path in Function node
This commit is contained in:
@@ -112,6 +112,7 @@ module.exports = function(RED) {
|
||||
"var node = {"+
|
||||
"id:__node__.id,"+
|
||||
"name:__node__.name,"+
|
||||
"path:__node__.path,"+
|
||||
"outputCount:__node__.outputCount,"+
|
||||
"log:__node__.log,"+
|
||||
"error:__node__.error,"+
|
||||
@@ -163,6 +164,7 @@ module.exports = function(RED) {
|
||||
__node__: {
|
||||
id: node.id,
|
||||
name: node.name,
|
||||
path: node._path,
|
||||
outputCount: node.outputs,
|
||||
log: function() {
|
||||
node.log.apply(node, arguments);
|
||||
@@ -344,6 +346,7 @@ module.exports = function(RED) {
|
||||
var node = {
|
||||
id:__node__.id,
|
||||
name:__node__.name,
|
||||
path:__node__.path,
|
||||
outputCount:__node__.outputCount,
|
||||
log:__node__.log,
|
||||
error:__node__.error,
|
||||
@@ -366,6 +369,7 @@ module.exports = function(RED) {
|
||||
var node = {
|
||||
id:__node__.id,
|
||||
name:__node__.name,
|
||||
path:__node__.path,
|
||||
outputCount:__node__.outputCount,
|
||||
log:__node__.log,
|
||||
error:__node__.error,
|
||||
|
Reference in New Issue
Block a user