Merge branch 'master' of github.com:konvajs/konva

This commit is contained in:
Anton Lavrenov 2019-02-11 08:47:24 -05:00
commit 12fc838709
3 changed files with 3 additions and 4 deletions

View File

@ -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()) {

View File

@ -93,7 +93,7 @@ export const DD = {
}
}
delete DD.node;
DD.node = null;
if (layer || node instanceof getGlobalKonva().Stage) {
(layer || node).draw();

View File

@ -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;
}