Skip to content

Commit ebbbe38

Browse files
committed
add explanatory comment
1 parent 2a24c58 commit ebbbe38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/traces/scatter/plot.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ function createFills(gd, traceJoin, plotinfo) {
8383

8484
var trace = d[0].trace;
8585

86+
// trace._ownFill and trace._nextFill may have leftover values
87+
// from a previous call to createFills. They should always start as null.
88+
// We clear both values in order to start with a clean slate.
89+
// Note that these are DIFFERENT VARIABLES than
90+
// trace._ownfill and trace._nexttrace referenced a few lines down.
8691
trace._ownFill = null;
8792
trace._nextFill = null;
8893

0 commit comments

Comments
 (0)