diff --git a/editor/js/ui/utils.js b/editor/js/ui/utils.js index d4bb4caf7..2534f8685 100644 --- a/editor/js/ui/utils.js +++ b/editor/js/ui/utils.js @@ -302,31 +302,32 @@ RED.utils = (function() { } var fullLength = data.length; - if (originalLength > 0) { + if (originalLength > 0) { $(' ').prependTo(header); var arrayRows = $('
').appendTo(element); element.addClass('debug-message-buffer-raw'); - - if (key) { - headerHead = $('').html(typeHint||(type+'['+originalLength+']')).appendTo(entryObj); - } else { - headerHead = $('').appendTo(entryObj); - $('[ ').appendTo(headerHead); - var arrayLength = Math.min(originalLength,10); - for (i=0;i, ').appendTo(headerHead); - } + } + if (key) { + headerHead = $('').html(typeHint||(type+'['+originalLength+']')).appendTo(entryObj); + } else { + headerHead = $('').appendTo(entryObj); + $('[ ').appendTo(headerHead); + var arrayLength = Math.min(originalLength,10); + for (i=0;i, ').appendTo(headerHead); } - if (originalLength > arrayLength) { - $('').appendTo(headerHead); - } - if (arrayLength === 0) { - $('empty').appendTo(headerHead); - } - $(' ]').appendTo(headerHead); } + if (originalLength > arrayLength) { + $('').appendTo(headerHead); + } + if (arrayLength === 0) { + $('empty').appendTo(headerHead); + } + $(' ]').appendTo(headerHead); + } + if (originalLength > 0) { makeExpandable(header,function() { if (!key) {