Skip to content

Commit 97a4542

Browse files
committed
rm unnecessary function call
1 parent eebe7d0 commit 97a4542

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/plots/gl3d/scene.js

+11-13
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ function render(scene) {
6565
return Axes.tickText(axis, axis.c2l(val), 'hover').text;
6666
}
6767

68-
function makeEventData(xVal, yVal, zVal, trace, selection) {
69-
return {points: [{
70-
x: xVal,
71-
y: yVal,
72-
z: zVal,
73-
data: trace._input,
74-
fullData: trace,
75-
curveNumber: trace.index,
76-
pointNumber: selection.data.index
77-
}]};
78-
}
79-
8068
var oldEventData;
8169

8270
if(lastPicked !== null) {
@@ -112,7 +100,17 @@ function render(scene) {
112100
});
113101
}
114102

115-
var eventData = makeEventData(xVal, yVal, zVal, trace, selection);
103+
var eventData = {
104+
points: [{
105+
x: xVal,
106+
y: yVal,
107+
z: zVal,
108+
data: trace._input,
109+
fullData: trace,
110+
curveNumber: trace.index,
111+
pointNumber: selection.data.index
112+
}]
113+
};
116114

117115
if(selection.buttons && selection.distance < 5) {
118116
scene.graphDiv.emit('plotly_click', eventData);

0 commit comments

Comments
 (0)