diff --git a/src/Context.ts b/src/Context.ts index 9edbc2fe..f71a6e51 100644 --- a/src/Context.ts +++ b/src/Context.ts @@ -141,8 +141,7 @@ export class Context { * @param {Konva.Shape} shape */ fillStrokeShape(shape) { - var fillEnabled = shape.getFillEnabled(); - if (fillEnabled) { + if (shape.getFillEnabled()) { this._fill(shape); } if (shape.getStrokeEnabled()) { diff --git a/src/DragAndDrop.ts b/src/DragAndDrop.ts index c3955a39..52d9eaa9 100644 --- a/src/DragAndDrop.ts +++ b/src/DragAndDrop.ts @@ -93,7 +93,7 @@ export const DD = { } } - delete DD.node; + DD.node = null; if (layer || node instanceof getGlobalKonva().Stage) { (layer || node).draw(); diff --git a/src/Node.ts b/src/Node.ts index 5356330e..1f0b862c 100644 --- a/src/Node.ts +++ b/src/Node.ts @@ -182,7 +182,7 @@ export abstract class Node { _clearSelfAndDescendantCache(attr?) { this._clearCache(attr); - // skip clearing of node is cached with canvas + // skip clearing if node is cached with canvas if (this._cache.canvas) { return; }