Skip to content

Commit 43ccc25

Browse files
committed
Fix linting
1 parent 8c272cd commit 43ccc25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/fx/click.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function click(gd, evt, subplot) {
2929
var data;
3030
if(evt && evt.target) {
3131
if(gd._hoverdata) {
32-
data = gd._hoverdata
32+
data = gd._hoverdata;
3333
} else if(clickmode.indexOf('anywhere') > -1) {
3434
var xaxis = gd._fullLayout.xaxis;
3535
var yaxis = gd._fullLayout.yaxis;
@@ -38,14 +38,14 @@ module.exports = function click(gd, evt, subplot) {
3838
var x = xaxis.p2c(evt.pointerX - l);
3939
var y = yaxis.p2c(evt.pointerY - t);
4040
data = [{x: x, y: y}];
41-
}
41+
}
4242
if(data) {
4343
if(annotationsDone && annotationsDone.then) {
4444
// TODO(j) add gd._hoverdata to emitClick here
4545
annotationsDone.then(emitClick);
4646
} else emitClick(data);
4747
}
48-
48+
4949
// why do we get a double event without this???
5050
if(evt.stopImmediatePropagation) evt.stopImmediatePropagation();
5151
}

0 commit comments

Comments
 (0)