Merge pull request #575 from VladimirTechMan/master

Minor corrections to the existing code
This commit is contained in:
Anton Lavrenov 2019-02-09 14:45:28 -05:00 committed by GitHub
commit 8041188403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 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

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