Skip to content

Commit a3c87da

Browse files
committed
fixup 0fb65dd
1 parent d50746b commit a3c87da

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/plot_api/plot_api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ exports.newPlot = function(gd, data, layout, config) {
666666
gd = Lib.getGraphDiv(gd);
667667

668668
// remove gl contexts
669-
Plots.cleanPlot([], {}, gd._fullData || {}, gd._fullLayout || {}, gd.calcdata || []);
669+
Plots.cleanPlot([], {}, gd._fullData || [], gd._fullLayout || {}, gd.calcdata || []);
670670

671671
Plots.purge(gd);
672672
return exports.plot(gd, data, layout, config);

src/plots/plots.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ plots.supplyDefaults = function(gd) {
449449
}
450450

451451
// update object references in calcdata
452-
if(oldCalcdata === newFullData.length) {
452+
if(oldCalcdata.length === newFullData.length) {
453453
for(i = 0; i < newFullData.length; i++) {
454454
var newTrace = newFullData[i];
455455
var cd0 = oldCalcdata[i][0];

src/traces/splom/base_plot.js

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ function showZeroLine(ax) {
187187
}
188188

189189
function clean(newFullData, newFullLayout, oldFullData, oldFullLayout, oldCalcdata) {
190+
oldCalcdata = oldCalcdata || [];
191+
190192
var oldModules = oldFullLayout._modules || [];
191193
var newModules = newFullLayout._modules || [];
192194

0 commit comments

Comments
 (0)