royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] branch develop updated: Bad dataGroup reference
Date Sat, 22 Sep 2018 17:27:42 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs 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 9fe5317  Bad dataGroup reference
9fe5317 is described below

commit 9fe5317f5a5e46e85dddb21fb54faa6feb733a5f
Author: Harbs <harbs@in-tools.com>
AuthorDate: Sat Sep 22 20:27:30 2018 +0300

    Bad dataGroup reference
---
 .../royale/html/beads/DataItemRendererFactoryForColumnData.as  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForColumnData.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForColumnData.as
index 3212bbf..94efec8 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForColumnData.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataItemRendererFactoryForColumnData.as
@@ -131,14 +131,12 @@ package org.apache.royale.html.beads
 			if (!dp)
 				return;
 			
-			var list:IList = _strand as IList;
-			var dataGroup:IItemRendererParent = list.dataGroup;
-			
-			dataGroup.removeAllItemRenderers();
-						
 			var view:DataGridColumnView = _strand.getBeadByType(IBeadView) as DataGridColumnView;
+			var dataGroup:IItemRendererParent = view.dataGroup;
 			if (view == null) return;
-						
+
+			dataGroup.removeAllItemRenderers();
+
 			var n:int = dp.length; 
 			for (var i:int = 0; i < n; i++)
 			{


Mime
View raw message