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 2020/07/02 07:06:51 UTC

[GitHub] [royale-asjs] piotrzarzycki21 commented on issue #639: Binding doesn't work in Jewel List item renderers using VO

piotrzarzycki21 commented on issue #639:
URL: https://github.com/apache/royale-asjs/issues/639#issuecomment-652825790


   > I would like to report another issue, which may be related somehow to the latest compiler changes - I'm not really sure. We have faced a bit of a blocker with that - which ended with workaround which we are not in favor. I'm not able to prepare simple test case, cause it's rather reproducible in our environment, but I would like to provide some code. I have used build [643](http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/643/) of SDK.
   > 
   > We are getting following exceptions when one of our VO has on top of each property tag `[Bindable]`:
   > 
   > ```
   > Uncaught TypeError: this.dispatchEvent is not a function
   >     at model.vo.DominoPartitionTaskVO.set__label (DominoPartitionTaskVO.js:82)
   >     at new model.vo.DominoPartitionTaskVO (DominoPartitionTaskVO.js:34)
   >     at mediator.MediatorDominoPartitionRequest.mediator_MediatorDominoPartitionRequest_updateView (MediatorDominoPartitionRequest.js:245)
   >     at mediator.MediatorDominoPartitionRequest.onRegister (MediatorDominoPartitionRequest.js:84)
   >     at org.puremvc.as3.multicore.core.View.registerMediator (View.js:183)
   >     at ApplicationFacade.org.puremvc.as3.multicore.patterns.facade.Facade.registerMediator (Facade.js:273)
   >     at controller.CommandRemoveRegisterMainContentView.execute (CommandRemoveRegisterMainContentView.js:45)
   >     at org.puremvc.as3.multicore.core.Controller.executeCommand (Controller.js:104)
   >     at org.puremvc.as3.multicore.patterns.observer.Observer.notifyObserver (Observer.js:116)
   >     at org.puremvc.as3.multicore.core.View.notifyObservers (View.js:123)
   > ```
   > 
   > When I have changed and put `[Bindable]` on top of class we are getting different exception:
   > 
   > ```
   > base.js:1578 Uncaught TypeError: Cannot read property 'call' of undefined
   >     at Object.goog.bindNative_ (base.js:1578)
   >     at Function.org.apache.royale.utils.Language.closure (Language.js:280)
   >     at org.apache.royale.binding.PropertyWatcher.org_apache_royale_binding_PropertyWatcher_adjustListeners (PropertyWatcher.js:162)
   >     at org.apache.royale.binding.PropertyWatcher.parentChanged (PropertyWatcher.js:149)
   >     at org.apache.royale.binding.ItemRendererDataBinding.org.apache.royale.binding.DataBindingBase.setupWatchers (DataBindingBase.js:172)
   >     at org.apache.royale.binding.ItemRendererDataBinding.org.apache.royale.binding.DataBindingBase.setupWatchers (DataBindingBase.js:184)
   >     at org.apache.royale.binding.ItemRendererDataBinding.org_apache_royale_binding_ItemRendererDataBinding_makeGenericBinding (ItemRendererDataBinding.js:126)
   >     at org.apache.royale.binding.ItemRendererDataBinding.initBindingsHandler (ItemRendererDataBinding.js:107)
   >     at view.renderers.PartitionRequestTaskItemRenderer.org.apache.royale.events.EventDispatcher.fireListeners (EventDispatcher.js:117)
   >     at Function.goog.events.EventTarget.dispatchEventInternal_ (eventtarget.js:382)
   > ```
   > 
   > VO extends other VO which contains one property get/set. If there is anything which can help to resolve that would be grate. We have temporary removed [Bindable] completely from that VO.
   > 
   > [data_for_issue.zip](https://github.com/apache/royale-asjs/files/4082776/data_for_issue.zip)
   
   I cannot reproduce it actually or I would say I'm not sure how to reproduce. It was really long time ago. Too bad that we didn't touch it at that time. This issue was really interested why it happened. 


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