Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FF9D10837 for ; Tue, 5 Nov 2013 10:53:25 +0000 (UTC) Received: (qmail 40369 invoked by uid 500); 5 Nov 2013 10:53:25 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 40268 invoked by uid 500); 5 Nov 2013 10:53:22 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 40261 invoked by uid 99); 5 Nov 2013 10:53:21 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 10:53:21 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 741533E6D8; Tue, 5 Nov 2013 10:53:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mamsellem@apache.org To: commits@flex.apache.org Message-Id: <368d82dbe0c249e0aafeae5ef00e91e7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-sdk] [refs/heads/develop] - FIXED - 33877 - Avoid uneeded point allocation in BusyIndicator Date: Tue, 5 Nov 2013 10:53:21 +0000 (UTC) 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 Authored: Tue Nov 5 11:51:39 2013 +0100 Committer: mamsellem 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 +}