This commit is contained in:
Anton Lavrenov 2019-02-11 08:49:30 -05:00
parent 12fc838709
commit 0880f89e66
2 changed files with 4 additions and 5 deletions

View File

@ -1457,8 +1457,7 @@
* @param {Konva.Shape} shape * @param {Konva.Shape} shape
*/ */
Context.prototype.fillStrokeShape = function (shape) { Context.prototype.fillStrokeShape = function (shape) {
var fillEnabled = shape.getFillEnabled(); if (shape.getFillEnabled()) {
if (fillEnabled) {
this._fill(shape); this._fill(shape);
} }
if (shape.getStrokeEnabled()) { if (shape.getStrokeEnabled()) {
@ -2379,7 +2378,7 @@
evt.dragEndNode = node; evt.dragEndNode = node;
} }
} }
delete DD.node; DD.node = null;
if (layer || node instanceof getGlobalKonva().Stage) { if (layer || node instanceof getGlobalKonva().Stage) {
(layer || node).draw(); (layer || node).draw();
} }
@ -2530,7 +2529,7 @@
*/ */
Node.prototype._clearSelfAndDescendantCache = function (attr) { Node.prototype._clearSelfAndDescendantCache = function (attr) {
this._clearCache(attr); this._clearCache(attr);
// skip clearing of node is cached with canvas // skip clearing if node is cached with canvas
if (this._cache.canvas) { if (this._cache.canvas) {
return; return;
} }

2
konva.min.js vendored

File diff suppressed because one or more lines are too long