mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Allow node properties to be same as existing object functions
Fixes #880
This commit is contained in:
parent
6c00194d35
commit
c05e9da9c5
@ -127,7 +127,7 @@ module.exports = {
|
|||||||
config.forEach(function(n) {
|
config.forEach(function(n) {
|
||||||
if (n.type !== 'subflow' && n.type !== 'tab') {
|
if (n.type !== 'subflow' && n.type !== 'tab') {
|
||||||
for (var prop in n) {
|
for (var prop in n) {
|
||||||
if (n.hasOwnProperty(prop) && prop !== 'id' && prop !== 'wires' && prop !== 'type' && prop !== '_users' && flow.configs[n[prop]]) {
|
if (n.hasOwnProperty(prop) && prop !== 'id' && prop !== 'wires' && prop !== 'type' && prop !== '_users' && flow.configs.hasOwnProperty(n[prop])) {
|
||||||
// This property references a global config node
|
// This property references a global config node
|
||||||
flow.configs[n[prop]]._users.push(n.id)
|
flow.configs[n[prop]]._users.push(n.id)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user