mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix not to use hasOwnProperty
This commit is contained in:
parent
fb81121bd3
commit
dc73997be3
@ -334,7 +334,7 @@ RED.deploy = (function() {
|
|||||||
var invalidNodes = [];
|
var invalidNodes = [];
|
||||||
|
|
||||||
RED.nodes.eachConfig(function(node) {
|
RED.nodes.eachConfig(function(node) {
|
||||||
if (!node.hasOwnProperty("valid")) {
|
if (node.valid === undefined) {
|
||||||
RED.editor.validateNode(node);
|
RED.editor.validateNode(node);
|
||||||
}
|
}
|
||||||
if (!node.valid && !node.d) {
|
if (!node.valid && !node.d) {
|
||||||
|
Loading…
Reference in New Issue
Block a user