Skip to content

Commit 1b6d11d

Browse files
committed
hide class internals
1 parent 1e206ff commit 1b6d11d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,11 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
21472147
d3DomElement.append('<div class="typeLabel">' + typeLabelPrefix + obj[1] + ' class ' + superclassStr + '</div>');
21482148
}
21492149

2150+
// right now, let's NOT display class members, since that clutters
2151+
// up the display too much. in the future, consider displaying
2152+
// class members in a pop-up pane on mouseover or mouseclick
2153+
if (!isInstance) return;
2154+
21502155
if (obj.length > headerLength) {
21512156
var lab = isInstance ? 'inst' : 'class';
21522157
d3DomElement.append('<table class="' + lab + 'Tbl"></table>');

0 commit comments

Comments
 (0)