Skip to content

Commit 76ce3aa

Browse files
committed
simplify logic
1 parent 9425a24 commit 76ce3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ exports.loneHover = function loneHover(hoverItems, opts) {
206206
});
207207

208208
var container3 = d3.select(opts.container);
209-
var outerContainer3 = opts.outerContainer ? opts.outerContainer : container3;
209+
var outerContainer3 = opts.outerContainer || container3;
210210

211211
var fullOpts = {
212212
hovermode: 'closest',

0 commit comments

Comments
 (0)