mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix jshint test
This commit is contained in:
parent
9bfc6d376b
commit
e48cbafbd6
@ -48,10 +48,12 @@ RED.editor = (function() {
|
|||||||
function validateNodeProperties(node, definition, properties) {
|
function validateNodeProperties(node, definition, properties) {
|
||||||
var isValid = true;
|
var isValid = true;
|
||||||
for (var prop in definition) {
|
for (var prop in definition) {
|
||||||
|
if (definition.hasOwnProperty(prop)) {
|
||||||
if (!validateNodeProperty(node, definition, prop, properties[prop])) {
|
if (!validateNodeProperty(node, definition, prop, properties[prop])) {
|
||||||
isValid = false;
|
isValid = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user