Skip to content

Commit e1108ec

Browse files
committed
tiny
1 parent b35f0b1 commit e1108ec

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ function ExecutionVisualizer(domRootID, dat, params) {
239239
this.codeOutputLines = null;
240240
this.breakpoints = null; // set of execution points to set as breakpoints
241241
this.sortedBreakpointsList = null; // sorted and synced with breakpointLines
242-
this.hoverBreakpoints = null; // set of breakpoints because we're HOVERING over a given line
243242

244243
this.classAttrsHidden = {}; // kludgy hack for 'show/hide attributes' for class objects
245244

@@ -1129,7 +1128,7 @@ ExecutionVisualizer.prototype.renderSliderBreakpoints = function() {
11291128
.enter().append('rect')
11301129
.attr('x', function(d, i) {
11311130
// make edge case of 0 look decent:
1132-
return (d === 0) ? 0 : xrange(d) - 2;
1131+
return (d === 0) ? 0 : xrange(d) - 1;
11331132
})
11341133
.attr('y', 0)
11351134
.attr('width', 2)
@@ -1148,7 +1147,6 @@ ExecutionVisualizer.prototype.renderPyCodeOutput = function() {
11481147
// initialize!
11491148
this.breakpoints = d3.map();
11501149
this.sortedBreakpointsList = [];
1151-
this.hoverBreakpoints = d3.map();
11521150

11531151
// an array of objects with the following fields:
11541152
// 'text' - the text of the line of code

0 commit comments

Comments
 (0)