mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Minor corrections to the existing code
Removing one redundant variable and one small typo in a comment.
This commit is contained in:
@@ -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()) {
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user