You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/02/02 12:48:04 UTC
[royale-asjs] branch develop updated: mx numberformatter remove
empty if to avoid compilert output warning
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 6cd65ee mx numberformatter remove empty if to avoid compilert output warning
6cd65ee is described below
commit 6cd65ee5d2080eef40150c95c11573adf2ef91f8
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Feb 2 13:47:55 2019 +0100
mx numberformatter remove empty if to avoid compilert output warning
---
.../MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as
index 1b6e660..1c879af 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/NumberFormatter.as
@@ -585,14 +585,14 @@ public class NumberFormatter //extends Formatter
var numArrTemp:Array = numStr.split(".");
var numFraction:int = numArrTemp[1] ? String(numArrTemp[1]).length : 0;
- if (precision < numFraction)
+ /*if (precision < numFraction)
{
- /* if (rounding != NumberBaseRoundType.NONE)
+ if (rounding != NumberBaseRoundType.NONE)
{
numStr = dataFormatter.formatRoundingWithPrecision(
numStr, rounding, int(precision));
- } */
- }
+ }
+ }*/
var numValue:Number = Number(numStr);
if (Math.abs(numValue) >= 1)