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/12/02 09:07:47 UTC
[royale-asjs] branch develop updated: Using Greg's patch to avoid
infinite loops on static init. This code may not be needed to begin with as
it does not exist in Flex
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 cc2a86b Using Greg's patch to avoid infinite loops on static init. This code may not be needed to begin with as it does not exist in Flex
cc2a86b is described below
commit cc2a86b42476990c47422b31cbb5cc9f6e31b628
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Wed Dec 2 09:07:27 2020 +0000
Using Greg's patch to avoid infinite loops on static init. This code may not be needed to begin with as it does not exist in Flex
---
.../src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as
index ea2b785..71ae2f6 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/DefaultDataDescriptor.as
@@ -703,7 +703,7 @@ public class DefaultDataDescriptor implements ITreeDataDescriptor2 , IMenuDataDe
*/
public function get dataDescriptor():IMenuDataDescriptor
{
- return IMenuDataDescriptor(_dataDescriptor);
+ return _dataDescriptor || IMenuDataDescriptor(_dataDescriptor = new DefaultDataDescriptor());
}
/**