aharui commented on issue #824:
URL: https://github.com/apache/royale-asjs/issues/824#issuecomment-629595617


   If by zero-weight you mean that we wouldn't modify the XML and XMLList 
source code, that is certainly possible in JS.  IMO, the level of difficulty 
might change depending on whether you want a general purpose solution or just 
to handle the common scenario of "a bunch of XML nodes changed, now update a 
list".  
   
   The reason I'm suggesting a workaround for now is that I think the 
workaround is likely to be simpler yet just as effective as a fancier solution. 
 Even though a few nodes changed, it could be less code to just replace the 
entire XMLListCollection rather than propagate change nodes from each changing 
node.
   
   While I'm thinking of it, in case it helps if you do work on it, there are a 
few places where it would be most tempting to try to add XML change 
notification.  Inside XMLListCollection is an XMLListAdapter which I think 
manages XML notification in Flash as well.  It could actually replace the 
setAttribute and setChild methods with wrappers and dispatch some sort of 
notification.
   
   The other place is in Binding.  We don't currently have an XMLWatcher, but 
we could put one together that replaces setAttribute and setChild on a node.


----------------------------------------------------------------
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]


Reply via email to