Skip to content

Commit aa3b4bb

Browse files
author
Philip Guo
committed
avoid a SUBTLE DOM ID name clash!!!
1 parent d86fa76 commit aa3b4bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
17741774
.enter()
17751775
.append('tr')
17761776
.attr('id', function(d, i) {
1777-
return myViz.generateID(varnameToCssID('globals__' + d)); // make globally unique (within the page)
1777+
return myViz.generateID(varnameToCssID('global__' + d + '_tr')); // make globally unique (within the page)
17781778
});
17791779

17801780

@@ -1936,7 +1936,7 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
19361936
.enter()
19371937
.append('tr')
19381938
.attr('id', function(d, i) {
1939-
return myViz.generateID(varnameToCssID(d.frame.unique_hash + '__' + d.varname)); // make globally unique (within the page)
1939+
return myViz.generateID(varnameToCssID(d.frame.unique_hash + '__' + d.varname + '_tr')); // make globally unique (within the page)
19401940
});
19411941

19421942

0 commit comments

Comments
 (0)