You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/11/10 20:48:58 UTC

[GitHub] [royale-asjs] greg-dove commented on issue #552: Tree component does not refresh after data provider content is updated.

greg-dove commented on issue #552: Tree component does not refresh after data provider content is updated.
URL: https://github.com/apache/royale-asjs/issues/552#issuecomment-552232422
 
 
   I'm working on something else right now, but a quick glance at the generated code that was posted makes me think that the generated binding setter is probably not dispatching.
   See ** comment below:
   
   ```
   liveTreeDP: {
     get: function() {
       return com.likya.pinara.comps.TreePanel.liveTreeDP_;
     },
     
     set: function(value) {
       	var oldValue = com.likya.pinara.comps.TreePanel.liveTreeDP_;
       	if (value != oldValue) {
         		com.likya.pinara.comps.TreePanel.liveTreeDP_ = value;
         		var dispatcher = com.likya.pinara.comps.TreePanel._bindingEventDispatcher;  //** this should be '.staticEventDispatcher' not '._bindingEventDispatcher'      		
         		if (dispatcher) dispatcher.dispatchEvent(org.apache.royale.events.ValueChangeEvent.createUpdateEvent(
         			com.likya.pinara.comps.TreePanel, "liveTreeDP", oldValue, value));
         }
       }
     }
   ```
   
   
   Hopefully that is all that is needed. I can look at fixing this later today. However Serkan, if you want to confirm this you should be able to easily test it by making the change above in your js-debug output to see if it works. If you can confirm that, it would be helpful. (js-release won't work until this is addressed)

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services