flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - added clone() to Rectangle
Date Sun, 10 Jul 2016 10:34:09 GMT
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 <harbs@in-tools.com>
Authored: Sun Jul 10 13:34:04 2016 +0300
Committer: Harbs <harbs@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);
+	}
 }
 
 


Mime
View raw message