You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2020/09/26 18:35:16 UTC

[royale-asjs] branch develop updated: Add LabelUtil

This is an automated email from the ASF dual-hosted git repository.

yishayw 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 448d4fb  Add LabelUtil
448d4fb is described below

commit 448d4fb766fb1b524b951f9ffff963061b0d22ed
Author: Yishay Weiss <yi...@yell.com>
AuthorDate: Sat Sep 26 19:34:39 2020 +0100

    Add LabelUtil
---
 frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as | 2 +-
 .../projects/SparkRoyale/src/main/royale/spark/utils/LabelUtil.as     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as b/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as
index 9669a89..19cd66f 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as
@@ -126,7 +126,7 @@ import spark.components.IItemRendererOwner; IItemRendererOwner;
 //import spark.skins.spark.mediaClasses.normal.PlayPauseButtonSkin; PlayPauseButtonSkin;
 //import spark.skins.spark.mediaClasses.normal.ScrubBarSkin; ScrubBarSkin;
 //import spark.skins.spark.mediaClasses.normal.VolumeBarSkin; VolumeBarSkin;
-//import spark.utils.LabelUtil; LabelUtil; // needed
+import spark.utils.LabelUtil; LabelUtil; // needed
 	
 }
 
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/utils/LabelUtil.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/utils/LabelUtil.as
index a9bb5dc..4cd1557 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/utils/LabelUtil.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/utils/LabelUtil.as
@@ -111,8 +111,8 @@ public class LabelUtil
             return String(item);
 
         // special case for empty labelField
-        if (labelField == "" && FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
-            return "";
+        //if (labelField == "" && FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+            //return "";
         
         try
         {