Allow node properties to be same as existing object functions

Fixes #880
This commit is contained in:
Nick O'Leary 2016-07-03 23:00:48 +01:00
parent 6c00194d35
commit c05e9da9c5
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ module.exports = {
config.forEach(function(n) {
if (n.type !== 'subflow' && n.type !== 'tab') {
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
flow.configs[n[prop]]._users.push(n.id)
}