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 b3a6663  Minor : when stringifying output in TypeDefinition, make the 
results comparable between swf and js targets (sequence)
b3a6663 is described below

commit b3a66631738a8f97908fd279aec8b42421b84457
Author: greg-dove <[email protected]>
AuthorDate: Sat Oct 9 17:04:23 2021 +1300

    Minor : when stringifying output in TypeDefinition, make the results 
comparable between swf and js targets (sequence)
---
 .../src/main/royale/org/apache/royale/reflection/TypeDefinition.as    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
 
b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
index 7c2614b..086508d 100755
--- 
a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
+++ 
b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
@@ -890,7 +890,9 @@ COMPILE::SWF {
             while (collections.length) {
                 var collectionType:String = collections.shift();
                 var collection:Array =collections.shift();
-                collection.sort(function (item1:Object, item2:Object):int{ 
return item1.name < item2.name ? -1 : 1 });
+                if ('accessors,methods,variables'.indexOf(collectionType) != 
-1){
+                    collection.sort(function (item1:Object, item2:Object):int{ 
return item1.name < item2.name ? -1 : 1 });
+                }
                 s += collectionType+" :";
                 if (!collection || !collection.length) {
                     s+= "\n\t{none}\n"

Reply via email to