Skip to content

Commit 3666cf0

Browse files
archmojetpinard
authored andcommitted
move gl2d comment
1 parent fcbb831 commit 3666cf0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/plots/plots.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -1272,10 +1272,13 @@ plots.supplyTraceDefaults = function(traceIn, traceOut, colorIndex, layout, trac
12721272
var subplots = layout._subplots;
12731273
var subplotId = '';
12741274

1275-
// TODO - currently if we draw an empty gl2d subplot, it draws
1276-
// nothing then gets stuck and you can't get it back without newPlot
1277-
// sort this out in the regl refactor? but for now just drop empty gl2d subplots
1278-
if(basePlotModule.name !== 'gl2d' || visible) {
1275+
if(
1276+
visible ||
1277+
basePlotModule.name !== 'gl2d' // for now just drop empty gl2d subplots
1278+
// TODO - currently if we draw an empty gl2d subplot, it draws
1279+
// nothing then gets stuck and you can't get it back without newPlot
1280+
// sort this out in the regl refactor?
1281+
) {
12791282
if(Array.isArray(subplotAttr)) {
12801283
for(i = 0; i < subplotAttr.length; i++) {
12811284
var attri = subplotAttr[i];

0 commit comments

Comments
 (0)