Skip to content

Commit

Permalink
correct roundingRect cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
theshock committed Apr 25, 2013
1 parent ddfa33a commit e76afc6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/Shapes/RoundedRectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ var RoundedRectangle = LibCanvas.declare(
return ctx;
},


clone: function method () {
return method.previous
.apply(this, arguments)
.setRadius(this.radius);
},

equals: function (shape, accuracy) {
return Rectangle.prototype.equals.call( this, shape, accuracy ) && shape.radius == this.radius;
},
Expand Down
7 changes: 7 additions & 0 deletions libcanvas-full-compiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -6433,6 +6433,13 @@ var RoundedRectangle = LibCanvas.declare(
return ctx;
},


clone: function method () {
return method.previous
.apply(this, arguments)
.setRadius(this.radius);
},

equals: function (shape, accuracy) {
return Rectangle.prototype.equals.call( this, shape, accuracy ) && shape.radius == this.radius;
},
Expand Down

0 comments on commit e76afc6

Please sign in to comment.