Keep local/remote diff objects in sync as they expand

This commit is contained in:
Nick O'Leary
2017-07-31 23:29:36 +01:00
parent 5bdb9e972e
commit eaf08a9971
3 changed files with 175 additions and 24 deletions

View File

@@ -441,7 +441,14 @@ RED.debug = (function() {
}
var el = $('<span class="debug-message-payload"></span>').appendTo(msg);
var path = o.property||'';
var debugMessage = RED.utils.createObjectElement(payload,/*true*/null,format,false,path,sourceNode&&sourceNode.id,path);
var debugMessage = RED.utils.createObjectElement(payload, {
key: /*true*/null,
typeHint: format,
hideKey: false,
path: path,
sourceId: sourceNode&&sourceNode.id,
rootPath: path
});
// Do this in a separate step so the element functions aren't stripped
debugMessage.appendTo(el);
// NOTE: relying on function error to have a "type" that all other msgs don't