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 2022/02/02 08:50:50 UTC

[royale-asjs] branch develop updated: Fix ArrayCollection.refresh() not changing list in emulation

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 4323105  Fix ArrayCollection.refresh() not changing list in emulation
4323105 is described below

commit 4323105be4733c811b676d72b13e4a482baf3b66
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Wed Feb 2 10:50:38 2022 +0200

    Fix ArrayCollection.refresh() not changing list in emulation
---
 .../listClasses/DataItemRendererFactoryForICollectionViewData.as      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as
index ee32f90..5b11d02 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as
@@ -243,9 +243,9 @@ package mx.controls.listClasses
 			if (!dp)
 				return;
 			
-			if (event.kind == CollectionEventKind.RESET)
+			if (event.kind == CollectionEventKind.RESET || event.kind == CollectionEventKind.REFRESH)
 			{
-	            super.dataProviderChangeHandler(event);            
+				super.dataProviderChangeHandler(event);            
 			}
 			else if (event.kind == CollectionEventKind.REMOVE)
 			{