Skip to content

Commit e252cc8

Browse files
committed
refactor emit calls to be on gd
1 parent 5b36d3b commit e252cc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/selections/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
350350

351351
fillRangeItems(eventData, poly);
352352

353-
dragOptions.gd.emit('plotly_selecting', eventData);
353+
gd.emit('plotly_selecting', eventData);
354354
}
355355
);
356356
}
@@ -452,7 +452,7 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
452452
}
453453

454454
eventData.selections = gd.layout.selections;
455-
dragOptions.gd.emit('plotly_selected', eventData);
455+
gd.emit('plotly_selected', eventData);
456456
}).catch(Lib.error);
457457
};
458458
}

0 commit comments

Comments
 (0)