Skip to content

Commit 7c0526a

Browse files
committed
aj-proof '++' expressions
1 parent 4382fc7 commit 7c0526a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: src/traces/scattergl/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,11 @@ function calc(gd, trace) {
126126

127127
// stash scene ref
128128
stash._scene = scene;
129-
stash.index = scene.count++;
129+
stash.index = scene.count;
130130
stash.x = x;
131131
stash.y = y;
132132
stash.positions = positions;
133+
scene.count++;
133134

134135
return [{x: false, y: false, t: stash, trace: trace}];
135136
}

Diff for: src/traces/scatterpolargl/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ function plot(gd, subplot, cdata) {
161161
stash.theta = thetaArray;
162162
stash.positions = positions;
163163
stash._scene = scene;
164-
stash.index = scene.count++;
164+
stash.index = scene.count;
165+
scene.count++;
165166
});
166167

167168
return ScatterGl.plot(gd, subplot, cdata);

0 commit comments

Comments
 (0)