Redraw bubbles even if arrows are hidden.
Fixes
@@ -211,9 +211,15 @@ function (declare, domClass, dom, style, fx, Toggler, on, query, Memory,
this._refresh();
},
- drawBugPath : function () {
+ drawBugPath : function (linesNeeded, bubblesNeeded) {
var that = this;
+ if (linesNeeded === undefined) linesNeeded = true;
+ if (bubblesNeeded === undefined) bubblesNeeded = true;
+
+ if (!linesNeeded && !bubblesNeeded)
+ return;
+
this.clearBubbles();
this.clearLines();
@@ -234,8 +240,12 @@ function (declare, domClass, dom, style, fx, Toggler, on, query, Memory,
points.forEach(function (point) { --point.startCol; });
points.forEach(function (bubble) { --bubble.startCol; });
+ if (bubblesNeeded) {
that.addBubbles(bubbles);
that.addOtherFileBubbles(reportDetails.executionPath);
+ }
+
+ if (linesNeeded)
that.addLines(points);
},
@@ -621,8 +631,8 @@ function (declare, domClass, dom, style, fx, Toggler, on, query, Memory,
if (isOtherFile || isOtherReport)
// TODO: Now arrows are redrawn only if new file is opened. But what if
// in the same file the path goes out of the CodeMirror-rendered area?
- if (this.buttonPane.showArrowCheckbox.get('checked'))
- this.editor.drawBugPath();
+ this.editor.drawBugPath(
+ this.buttonPane.showArrowCheckbox.get('checked'));
this.editor.jumpTo(line, column);
