You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2022/02/28 04:03:44 UTC

[royale-asjs] branch develop updated: Fix for 'attributeChanged' always returning undefined (JSRoyale) for the new value in XMLListAdapter

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

gregdove 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 cc94576  Fix for 'attributeChanged' always returning undefined (JSRoyale) for the new value in XMLListAdapter
     new e081685  Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
cc94576 is described below

commit cc94576f726c00c167de0b184e5465a22fdab5dc
Author: greg-dove <gr...@gmail.com>
AuthorDate: Mon Feb 28 17:03:04 2022 +1300

    Fix for 'attributeChanged' always returning undefined (JSRoyale) for the new value in XMLListAdapter
---
 .../MXRoyaleBase/src/main/royale/mx/collections/XMLListAdapter.as  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyaleBase/src/main/royale/mx/collections/XMLListAdapter.as b/frameworks/projects/MXRoyaleBase/src/main/royale/mx/collections/XMLListAdapter.as
index c614694..5a991ca 100644
--- a/frameworks/projects/MXRoyaleBase/src/main/royale/mx/collections/XMLListAdapter.as
+++ b/frameworks/projects/MXRoyaleBase/src/main/royale/mx/collections/XMLListAdapter.as
@@ -695,7 +695,12 @@ public class XMLListAdapter extends EventDispatcher implements IList, IXMLNotifi
 	            {
 	                prop = "@" + String(value);
 	                oldValue = detail;
-	                newValue = target[prop];
+                    COMPILE::SWF{
+                        newValue = target[prop];
+                    }
+                    COMPILE::JS{
+                        newValue = target.attribute(prop).toString();// was : target[prop];
+                    }
 	                break;
 	            }