From e76afc6eceee549d2d66b49f1f137098db1766e2 Mon Sep 17 00:00:00 2001 From: TheShock Date: Fri, 26 Apr 2013 00:58:37 +0300 Subject: [PATCH] correct roundingRect cloning --- Source/Shapes/RoundedRectangle.js | 7 +++++++ libcanvas-full-compiled.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Source/Shapes/RoundedRectangle.js b/Source/Shapes/RoundedRectangle.js index 20d0a1f..f00f4ba 100644 --- a/Source/Shapes/RoundedRectangle.js +++ b/Source/Shapes/RoundedRectangle.js @@ -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; }, diff --git a/libcanvas-full-compiled.js b/libcanvas-full-compiled.js index 7a4a928..d2c063d 100644 --- a/libcanvas-full-compiled.js +++ b/libcanvas-full-compiled.js @@ -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; },