Skip to content

Commit 09d795f

Browse files
committed
src/plots/cartesian/include_components.js
1 parent 9e975f9 commit 09d795f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/include_components.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function makeIncludeComponents(containerArrayName) {
2626
var xaList = subplots.xaxis;
2727
var yaList = subplots.yaxis;
2828
var cartesianList = subplots.cartesian;
29-
var hasCartesianOrGL2D = layoutOut._has('cartesian') || layoutOut._has('gl2d');
29+
var hasCartesian = layoutOut._has('cartesian');
3030

3131
for(var i = 0; i < array.length; i++) {
3232
var itemi = array[i];
@@ -40,7 +40,7 @@ module.exports = function makeIncludeComponents(containerArrayName) {
4040
var hasXref = idRegex.x.test(xref);
4141
var hasYref = idRegex.y.test(yref);
4242
if(hasXref || hasYref) {
43-
if(!hasCartesianOrGL2D) Lib.pushUnique(layoutOut._basePlotModules, Cartesian);
43+
if(!hasCartesian) Lib.pushUnique(layoutOut._basePlotModules, Cartesian);
4444

4545
var newAxis = false;
4646
if(hasXref && xaList.indexOf(xref) === -1) {

0 commit comments

Comments
 (0)