1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

toString values before checking for changes

This commit is contained in:
Nick O'Leary 2015-05-07 21:17:06 +01:00
parent ce5c9da107
commit fe1ce21114

View File

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