Skip to content

Commit 165ebb5

Browse files
committed
woohoo no need for overkill!
1 parent 746238e commit 165ebb5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

PyTutorGAE/js/pytutor.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,14 +1186,15 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
11861186
.tween('krazyTween', function() {
11871187
var i = d3.interpolate($(this).find('div.heapObject').height(), '0');
11881188
return function(t) {
1189-
myViz.redrawConnectors(); // TODO: could be slow!
1189+
myViz.redrawConnectors();
11901190
$(this).find('div.heapObject').height(i(t));
11911191
}
11921192
})
11931193
.duration(1000)
11941194
.each('end', function() {
11951195
hrExit.remove();
1196-
myViz.updateOutput(); // ugh
1196+
myViz.redrawConnectors();
1197+
//myViz.updateOutput(); // TODO: is this necessary or overkill?
11971198
});
11981199
}
11991200
else {
@@ -1252,14 +1253,15 @@ ExecutionVisualizer.prototype.renderDataStructures = function() {
12521253
.tween('krazyTween', function() {
12531254
var i = d3.interpolate($(this).find('div.heapObject').width(), '0');
12541255
return function(t) {
1255-
myViz.redrawConnectors(); // TODO: could be slow!
1256+
myViz.redrawConnectors();
12561257
$(this).find('div.heapObject').width(i(t));
12571258
}
12581259
})
12591260
.duration(800)
12601261
.each('end', function() {
12611262
tlhExit.remove();
1262-
myViz.updateOutput(); // ugh
1263+
myViz.redrawConnectors();
1264+
//myViz.updateOutput(); // TODO: is this necessary or overkill?
12631265
});
12641266

12651267
}

0 commit comments

Comments
 (0)