diff --git a/src/mxgraph/shape/mxSwimlane.js b/src/mxgraph/shape/mxSwimlane.js index bc6950222..68decc62c 100644 --- a/src/mxgraph/shape/mxSwimlane.js +++ b/src/mxgraph/shape/mxSwimlane.js @@ -25,7 +25,7 @@ import mxUtils from '../util/mxUtils'; */ class mxSwimlane extends mxShape { constructor(bounds, fill, stroke, strokewidth) { - super(mxConstants.DO_NOTHING); + super(); this.bounds = bounds; this.fill = fill; this.stroke = stroke; diff --git a/src/mxgraph/util/datatypes/mxCellState.ts b/src/mxgraph/util/datatypes/mxCellState.ts index 53bb60c58..a439148c2 100644 --- a/src/mxgraph/util/datatypes/mxCellState.ts +++ b/src/mxgraph/util/datatypes/mxCellState.ts @@ -42,7 +42,7 @@ import mxDictionary from "./mxDictionary"; */ class mxCellState extends mxRectangle { constructor(view: mxGraphView, cell: mxCell, style: {}) { - super(mxConstants.DO_NOTHING); + super(); this.view = view; this.cell = cell; diff --git a/src/mxgraph/util/mxConstants.js b/src/mxgraph/util/mxConstants.js index fb9113988..2100f1dc7 100644 --- a/src/mxgraph/util/mxConstants.js +++ b/src/mxgraph/util/mxConstants.js @@ -7,8 +7,6 @@ import mxRectangle from './datatypes/mxRectangle'; const mxConstants = { - DO_NOTHING: {}, - /** * Class: mxConstants * diff --git a/src/mxgraph/view/cell/mxCell.ts b/src/mxgraph/view/cell/mxCell.ts index c918145bb..4f0044b07 100644 --- a/src/mxgraph/view/cell/mxCell.ts +++ b/src/mxgraph/view/cell/mxCell.ts @@ -695,7 +695,7 @@ class mxCell { if (value != null) { if (typeof value.clone === 'function') { value = value.clone(); - } else if (!Number.isNaN(value.nodeType)) { + } else if (value.nodeType != null) { value = value.cloneNode(true); } }