Skip to content

Commit 01d4ee3

Browse files
committed
Fix - correctly treat empty list in the object inspector
1 parent ab2dbfe commit 01d4ee3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/JSRootPainter.jquery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@
156156
if (handle !== null) {
157157
if ('icon' in handle) img1 = handle.icon;
158158
if ('icon2' in handle) img2 = handle.icon2;
159-
if (('func' in handle) || ('execute' in handle) || ('aslink' in handle) || ('expand' in handle)) can_click = true;
159+
if (('func' in handle) || ('execute' in handle) || ('aslink' in handle) ||
160+
(('expand' in handle) && (hitem._more !== false))) can_click = true;
160161
}
161162

162-
163163
if ('_icon' in hitem) img1 = hitem._icon;
164164
if ('_icon2' in hitem) img2 = hitem._icon2;
165165
if ((img1.length==0) && ('_online' in hitem))

scripts/JSRootPainter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6669,9 +6669,11 @@
66696669
var simple = false;
66706670

66716671
if ((proto.lastIndexOf('Array]') == proto.length-6) && (proto.indexOf('[object')==0)) {
6672+
item._title = item._kind + " len=" + fld.length;
66726673
simple = (proto != '[object Array]');
66736674
if (fld.length == 0) {
66746675
item._value = "[ ]";
6676+
item._more = false;
66756677
} else {
66766678
item._value = "[...]";
66776679
item._more = true;

0 commit comments

Comments
 (0)