Skip to content

Commit

Permalink
Remvove the existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
CPatchane committed Dec 28, 2023
1 parent 467147b commit c596112
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,7 @@ export class Context {
* @name Konva.Context#roundRect
*/
roundRect(x: number, y: number, width: number, height: number, radii: number) {
if (this._context.roundRect) {
this._context.roundRect(x, y, width, height, radii);
} else {
this._context.rect(x, y, width, height);
}
this._context.roundRect(x, y, width, height, radii);
}
/**
* putImageData function.
Expand Down

0 comments on commit c596112

Please sign in to comment.