You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/06/21 18:04:41 UTC
[royale-asjs] branch develop updated: fix Proxy in foreach. Fixes
#417.
This is an automated email from the ASF dual-hosted git repository.
aharui 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 16f4328 fix Proxy in foreach. Fixes #417.
16f4328 is described below
commit 16f43286d7addab04d0da3fa06ee2b44248f8b6e
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Jun 21 11:03:08 2019 -0700
fix Proxy in foreach. Fixes #417.
---
.../Core/src/main/royale/org/apache/royale/utils/Proxy.as | 2 +-
.../src/main/royale/mx/collections/ListCollectionView.as | 11 +++++++++++
.../MXRoyale/src/main/royale/mx/rpc/AbstractService.as | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as
index 5293e65..ef9c855 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as
@@ -145,7 +145,7 @@ public dynamic class Proxy extends EventDispatcher
delete valueMap[propName];
}
- public function elementNames():Array
+ public function propertyNames():Array
{
var names:Array = [];
for (var p:String in valueMap)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as
index c14c928..6738376 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ListCollectionView.as
@@ -1104,6 +1104,17 @@ public class ListCollectionView extends Proxy implements ICollectionView, IList
return null;
}
+ COMPILE::JS
+ override public function propertyNames():Array
+ {
+ var nextNameArray:Array = [];
+ for (var i:int = 0; i < length; i++)
+ {
+ nextNameArray.push(i.toString());
+ }
+ return nextNameArray;
+ }
+
//--------------------------------------------------------------------------
//
// EventDispatcher methods
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as
index 9d218e7..b7edef0 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as
@@ -522,7 +522,7 @@ public dynamic class AbstractService extends Proxy implements IEventDispatcher
}
COMPILE::JS
- override public function elementNames():Array
+ override public function propertyNames():Array
{
nextNameArray = [];
for (var op:String in _operations)