1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix use of hasOwnProperty in Flow

Closes #907
This commit is contained in:
Nick O'Leary 2016-06-14 20:30:37 +01:00
parent d8405052d8
commit 0441c83fd7

View File

@ -1,5 +1,5 @@
/**
* Copyright 2015 IBM Corp.
* Copyright 2015, 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -280,7 +280,7 @@ function mapEnvVarProperties(obj,prop) {
}
} else {
for (var p in obj[prop]) {
if (obj[prop].hasOwnProperty) {
if (obj[prop].hasOwnProperty(p)) {
mapEnvVarProperties(obj[prop],p);
}
}