bugfix
parent
2f64ff0a36
commit
39d9b29e3c
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
import mxRectangle from './datatypes/mxRectangle';
|
||||
|
||||
const mxConstants = {
|
||||
DO_NOTHING: {},
|
||||
|
||||
/**
|
||||
* Class: mxConstants
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue