Skip to content

Commit

Permalink
remove foul isCacheDirty
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Apr 18, 2022
1 parent 9d77261 commit 5f3a39f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/shapes/group.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,29 +428,6 @@
this._drawClipPath(ctx, this.clipPath);
},

/**
* Check if cache is dirty
*/
isCacheDirty: function(skipCanvas) {
if (this.callSuper('isCacheDirty', skipCanvas)) {
return true;
}
if (!this.statefullCache) {
return false;
}
for (var i = 0; i < this._objects.length; i++) {
if (this._objects[i].isCacheDirty(true)) {
if (this._cacheCanvas) {
// if this group has not a cache canvas there is nothing to clean
var x = this.cacheWidth / this.zoomX, y = this.cacheHeight / this.zoomY;
this._cacheContext.clearRect(-x / 2, -y / 2, x, y);
}
return true;
}
}
return false;
},

/**
* @override
* @return {Boolean}
Expand Down

0 comments on commit 5f3a39f

Please sign in to comment.