aharui commented on issue #824: URL: https://github.com/apache/royale-asjs/issues/824#issuecomment-629346705
The Flash runtime had a way of detecting changes to XML nodes. The browser runtimes do not and I'm not really sure we want to emulate that in Royale. Two other options are: 1) make sure setting XMLListCollection.source triggers a CollectionEventKind.RESET and that the emulation classes respond to it 2) Create an XMLBinding class that watches some object for an event and performs some action on another object. However, I am not able to understand if there is something important about the way your code runs that would cause those strategies to not work. For example, if you must work on copies of the XMLList then listening to the original XMLList won't help. Or if you must change the XMLListCollection source instead of swapping in an entirely new XMLListCollection. On the other hand, if you already have a change event and/or code running via the change event, it might be quicker for you to just modify that code. For example, I assume your code knows when the locale changes, and it can fetch the XMLList, apply filters and put the result in a new XMLLIstCollection and replace the old one. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
