Skip to content

Commit 9d15d95

Browse files
author
Philip Guo
committed
minor
1 parent 8ca6867 commit 9d15d95

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ ExecutionVisualizer.prototype.renderPyCodeOutput = function() {
667667
if (i == 0) {
668668
return 'lineNo' + d.lineNumber;
669669
}
670+
else {
671+
return 'cod' + d.lineNumber;
672+
}
670673
})
671674
.html(function(d, i) {
672675
if (i == 0) {
@@ -1780,6 +1783,9 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
17801783
var valStringRepr = String(typeof val) + ':' + String(val);
17811784

17821785
// SUPER HACK - retrieve previous value as a hidden attribute
1786+
// TODO: use the jQuery .data() method to store arbitrary data
1787+
// inside of a DOM element, so that we can avoid munging strings:
1788+
// http://api.jquery.com/data/
17831789
var prevValStringRepr = $(this).attr('data-curvalue');
17841790

17851791
// IMPORTANT! only clear the div and render a new element if the

0 commit comments

Comments
 (0)