flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamsel...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FIXED - 33877 - Avoid uneeded point allocation in BusyIndicator
Date Tue, 05 Nov 2013 10:53:21 GMT
Updated Branches:
  refs/heads/develop 45f51db60 -> 1277b0970


FIXED - 33877 - Avoid uneeded point allocation in BusyIndicator


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/1277b097
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/1277b097
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/1277b097

Branch: refs/heads/develop
Commit: 1277b0970439b16a4391a1e05e37eab2106d2e32
Parents: 45f51db
Author: mamsellem <maurice.amsellem@systar.com>
Authored: Tue Nov 5 11:51:39 2013 +0100
Committer: mamsellem <maurice.amsellem@systar.com>
Committed: Tue Nov 5 11:51:39 2013 +0100

----------------------------------------------------------------------
 .../projects/spark/src/spark/components/BusyIndicator.as     | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/1277b097/frameworks/projects/spark/src/spark/components/BusyIndicator.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/BusyIndicator.as b/frameworks/projects/spark/src/spark/components/BusyIndicator.as
index f4abed1..c47c9cf 100644
--- a/frameworks/projects/spark/src/spark/components/BusyIndicator.as
+++ b/frameworks/projects/spark/src/spark/components/BusyIndicator.as
@@ -578,12 +578,10 @@ public class BusyIndicator extends UIComponent
                                spinnerPadding:Number):void
     {
         var g:Graphics = graphics;
-        var outsidePoint:Point = new Point();
-        var insidePoint:Point = new Point();
         
         g.lineStyle(spokeWidth, spokeColor, spokeAlpha, false, LineScaleMode.NORMAL, CapsStyle.ROUND);
-        outsidePoint = calculatePointOnCircle(spinnerRadius, spinnerRadius - eHeight - spinnerPadding,
degrees);
-        insidePoint = calculatePointOnCircle(spinnerRadius, spinnerRadius - spokeHeight +
eHeight - spinnerPadding, degrees);
+        var outsidePoint:Point = calculatePointOnCircle(spinnerRadius, spinnerRadius - eHeight
- spinnerPadding, degrees);
+        var insidePoint:Point = calculatePointOnCircle(spinnerRadius, spinnerRadius - spokeHeight
+ eHeight - spinnerPadding, degrees);
         g.moveTo(outsidePoint.x, outsidePoint.y);
         g.lineTo(insidePoint.x,  insidePoint.y);
             
@@ -819,4 +817,4 @@ public class BusyIndicator extends UIComponent
     }
   
 }
-}
\ No newline at end of file
+}


Mime
View raw message