You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pe...@apache.org on 2018/01/11 21:21:30 UTC

[royale-asjs] branch develop updated: Need to test for String type first.

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

pent 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 2955a16  Need to test for String type first.
2955a16 is described below

commit 2955a169c438e94c4d4a5452fa91afa3003b8e57
Author: Peter Ent <pe...@apache.org>
AuthorDate: Thu Jan 11 16:23:04 2018 -0500

    Need to test for String type first.
---
 .../royale/org/apache/royale/html/supportClasses/StringItemRenderer.as | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as
index d7ee986..596d5c2 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as
@@ -142,7 +142,8 @@ package org.apache.royale.html.supportClasses
 		{
 			super.data = value;
             var text:String;
-			if (labelField) text = String(value[labelField]);
+			if (value is String) text = value as String;
+			else if (labelField) text = String(value[labelField]);
 			else if (dataField) text = String(value[dataField]);
 			else text = String(value);
 

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