mirror of https://github.com/node-red/node-red.git
Fix jshint test
parent
9bfc6d376b
commit
e48cbafbd6
|
@ -48,8 +48,10 @@ RED.editor = (function() {
|
|||
function validateNodeProperties(node, definition, properties) {
|
||||
var isValid = true;
|
||||
for (var prop in definition) {
|
||||
if (!validateNodeProperty(node, definition, prop, properties[prop])) {
|
||||
isValid = false;
|
||||
if (definition.hasOwnProperty(prop)) {
|
||||
if (!validateNodeProperty(node, definition, prop, properties[prop])) {
|
||||
isValid = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return isValid;
|
||||
|
|
Loading…
Reference in New Issue