Skip to content

Commit 5307125

Browse files
committed
fixup typo in select query & remove neccessary branch
1 parent 8cf99a6 commit 5307125

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/plot_api/subroutines.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ exports.lsInner = function(gd) {
132132
plotgroupBg = plotinfo.bg = Lib.ensureSingle(plotgroup, 'rect', 'bg');
133133
pgNode.insertBefore(plotgroupBg.node(), pgNode.childNodes[0]);
134134
} else {
135-
plotgroupBg = plotgroup.select('rect,bg');
136-
if(plotgroupBg.size()) plotgroupBg.remove();
137-
135+
plotgroup.select('rect.bg').remove();
138136
lowerBackgroundIDs.push(subplot);
139137
lowerDomains.push([xDomain, yDomain]);
140138
}

0 commit comments

Comments
 (0)