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
commit f533ae18ee298d5c3369ce012e5d4e6aa1a01233 Author: greg-dove <greg.d...@gmail.com> AuthorDate: Tue May 17 15:08:14 2022 +1200 Fix XMLList loop targets for JS in XMLNotifier --- .../projects/MXRoyaleBase/src/main/royale/mx/utils/XMLNotifier.as | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/MXRoyaleBase/src/main/royale/mx/utils/XMLNotifier.as b/frameworks/projects/MXRoyaleBase/src/main/royale/mx/utils/XMLNotifier.as index 5bc8a13fa1..0aaa546fba 100644 --- a/frameworks/projects/MXRoyaleBase/src/main/royale/mx/utils/XMLNotifier.as +++ b/frameworks/projects/MXRoyaleBase/src/main/royale/mx/utils/XMLNotifier.as @@ -152,12 +152,14 @@ public class XMLNotifier * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 + * + * @royaleignorecoercion XMLList */ public function watchXML(xml:Object, notifiable:IXMLNotifiable, uid:String = null):void { if ((xml is XMLList) && xml.length() > 1) { - for each(var item:Object in xml) + for each(var item:Object in (xml as XMLList)) { watchXML(item, notifiable, uid); } @@ -201,12 +203,14 @@ public class XMLNotifier * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 + * + * @royaleignorecoercion XMLList */ public function unwatchXML(xml:Object, notifiable:IXMLNotifiable):void { if ((xml is XMLList) && xml.length() > 1) { - for each(var item:Object in xml) + for each(var item:Object in (xml as XMLList)) { unwatchXML(item, notifiable); }