Fix jshint test

pull/410/head
Nick O'Leary 2014-09-22 13:22:23 +01:00
parent 9bfc6d376b
commit e48cbafbd6
1 changed files with 4 additions and 2 deletions

View File

@ -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;
} }