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

piotrz 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 a7cb128  Fix issue where updated item in DataGrid was actually added 
instead of update
a7cb128 is described below

commit a7cb1284271226f988ac45ef63be2dd2df64b340
Author: Piotr Zarzycki <piotrzarzyck...@gmail.com>
AuthorDate: Sun Jan 14 14:20:18 2018 +0100

    Fix issue where updated item in DataGrid was actually added instead of 
update
---
 .../royale/html/beads/DataItemRendererFactoryForCollectionView.as   | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForCollectionView.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForCollectionView.as
index 53bac45..e8bb6a0 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForCollectionView.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForCollectionView.as
@@ -254,13 +254,11 @@ package org.apache.royale.html.beads
                        var dp:ICollectionView = dataProviderModel.dataProvider 
as ICollectionView;
                        if (!dp)
                                return;
-                       
-                       var presentationModel:IListPresentationModel = 
_strand.getBeadByType(IListPresentationModel) as IListPresentationModel;
-                       
+
                        // update the given renderer with (possibly) new 
information so it can change its
                        // appearence or whatever.
                        var ir:ISelectableItemRenderer = 
dataGroup.getElementAt(event.index) as ISelectableItemRenderer;
-                       fillRenderer(event.index, event.item, ir, 
presentationModel);
+                       setData(ir, event.item, event.index);
                }
                
                /**

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <commits@royale.apache.org>'].

Reply via email to