Allow debug msg elements to be pinned

This commit is contained in:
Nick O'Leary
2017-05-11 15:08:10 +01:00
parent 7381784d0f
commit e79da408a8
3 changed files with 213 additions and 45 deletions

View File

@@ -251,7 +251,7 @@ RED.debug = (function() {
}
var el = $('<span class="debug-message-payload"></span>').appendTo(msg);
var path = (o.property?'msg.'+property:'msg');
RED.utils.createObjectElement(payload,/*true*/null,format,false,path).appendTo(el);
RED.utils.createObjectElement(payload,/*true*/null,format,false,path,sourceNode&&sourceNode.id,path).appendTo(el);
var atBottom = (sbc.scrollHeight-messageList.height()-sbc.scrollTop) < 5;
var m = {
el: msg