Skip to content

Commit f498bd0

Browse files
committed
set to null instead of delete in ohlc/calc
1 parent 302d1e6 commit f498bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/ohlc/calc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ function calc(gd, trace) {
1919

2020
var tickLen = convertTickWidth(gd, xa, trace);
2121
var minDiff = trace._minDiff;
22-
delete trace._minDiff;
22+
trace._minDiff = null;
2323
var x = trace._xcalc;
24-
delete trace._xcalc;
24+
trace._xcalc = null;
2525

2626
var cd = calcCommon(gd, trace, x, ya, ptFunc);
2727

0 commit comments

Comments
 (0)