You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2020/09/29 19:33:49 UTC

[royale-asjs] branch develop updated: quick fix for build

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

gregdove 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 02cd3e1  quick fix for build
02cd3e1 is described below

commit 02cd3e12e046098663bb4432fd2b798b6d2b5991
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Sep 30 08:25:24 2020 +1300

    quick fix for build
---
 .../projects/MXRoyale/src/main/royale/mx/core/UIComponent.as   |  1 +
 .../projects/MXRoyale/src/main/royale/mx/utils/NameUtil.as     | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index dfe6cf1..f1734c2 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -68,6 +68,7 @@ import mx.styles.IStyleClient;
 import mx.styles.IStyleManager2;
 import mx.styles.StyleManager;
 import mx.utils.StringUtil;
+import mx.utils.NameUtil;
 import org.apache.royale.utils.MXMLDataInterpreter;
 use namespace mx_internal;
 
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/utils/NameUtil.as b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/NameUtil.as
index 455d02c..fe3e074 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/utils/NameUtil.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/utils/NameUtil.as
@@ -24,7 +24,7 @@ package mx.utils
 import mx.core.UIComponent;
 import mx.core.IUIComponent;
 import org.apache.royale.reflection.getQualifiedClassName;
-import mx.core.IRepeaterClient;
+//import mx.core.IRepeaterClient;
 
 /**
  *  The NameUtil utility class defines static methods for
@@ -80,9 +80,9 @@ public class NameUtil
         var name:String = getQualifiedClassName(object);
         
         // If there is a package name, strip it off.
-        var index:int = name.indexOf("::");
+        var index:int = name.lastIndexOf(".");
         if (index != -1)
-            name = name.substr(index + 2);
+            name = name.substr(index + 1);
                         
         // If the class name ends with a digit (which some autogenerated
         // classes do), then append an underscore before appending
@@ -178,9 +178,9 @@ public class NameUtil
             name = getQualifiedClassName(object);
 
         // If there is a package name, strip it off.
-        var index:int = name.indexOf("::");
+        var index:int = name.lastIndexOf(".");
         if (index != -1)
-            name = name.substr(index + 2);
+            name = name.substr(index + 1);
 
         return name;
     }