From fe1ce211147db9acf86df87ce0c36d21fdfd55b0 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 7 May 2015 21:17:06 +0100 Subject: [PATCH] toString values before checking for changes --- editor/js/ui/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 316cddfab..89a9eaaa8 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -230,7 +230,7 @@ RED.editor = (function() { newValue = input.val(); } if (newValue != null) { - if (editing_node[d] != newValue) { + if (editing_node[d].toString() != newValue.toString()) { if (editing_node._def.defaults[d].type) { if (newValue == "_ADD_") { newValue = ""; @@ -248,7 +248,7 @@ RED.editor = (function() { } changes[d] = editing_node[d]; editing_node[d] = newValue; - if (d !== 'valid') { changed = true; } + changed = true; } } }