You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2016/07/10 10:34:09 UTC
git commit: [flex-asjs] [refs/heads/develop] - added clone() to
Rectangle
Repository: flex-asjs
Updated Branches:
refs/heads/develop b8bf17763 -> c3c01a836
added clone() to Rectangle
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c3c01a83
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c3c01a83
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c3c01a83
Branch: refs/heads/develop
Commit: c3c01a836bb4e7083148c5f7c8dba8b0c6d30786
Parents: b8bf177
Author: Harbs <ha...@in-tools.com>
Authored: Sun Jul 10 13:34:04 2016 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Sun Jul 10 13:34:04 2016 +0300
----------------------------------------------------------------------
.../Core/src/main/flex/org/apache/flex/geom/Rectangle.as | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c3c01a83/frameworks/projects/Core/src/main/flex/org/apache/flex/geom/Rectangle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/geom/Rectangle.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/geom/Rectangle.as
index c16540b..6a79a45 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/geom/Rectangle.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/geom/Rectangle.as
@@ -42,6 +42,10 @@ public class Rectangle extends flash.geom.Rectangle
{
super(x, y, width, height);
}
+ override public function clone():org.apache.flex.geom.Rectangle
+ {
+ return new org.apache.flex.geom.Rectangle(left,top,width,height);
+ }
}
/**
@@ -89,6 +93,10 @@ public class Rectangle
{
height = value - top;
}
+ public function clone():Rectangle
+ {
+ return new Rectangle(left,top,width,height);
+ }
}