Skip to content

Commit f67ff4d

Browse files
committed
Remove unnecessary step from shapes.drawAll()
* Removed call to `.remove()` in `shapes.drawAll()`, since `.remove()` is also call in `shapes.draw()`. * No new test failed after this change.
1 parent c53303b commit f67ff4d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/components/shapes/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ function linearToData(ax) { return ax.type === 'category' ? ax.l2c : ax.l2d; }
8989

9090
shapes.drawAll = function(gd) {
9191
var fullLayout = gd._fullLayout;
92-
fullLayout._shapelayer.selectAll('path').remove();
9392
for(var i = 0; i < fullLayout.shapes.length; i++) {
9493
shapes.draw(gd, i);
9594
}

0 commit comments

Comments
 (0)