From e48cbafbd6a82ad64470ee9f77b58ffa550a3298 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 22 Sep 2014 13:22:23 +0100 Subject: [PATCH] Fix jshint test --- public/red/ui/editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 70a77622e..c5f7986e3 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -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;