Thanks a lot Oleg, you just made my day ! and saved me a lot of time. This is a typical example of a situation where you feel very silly when you get the solution. I should've read the manual a bit more seriously.
--- In [email protected], Oleg Sivokon <olegsivo...@...> wrote: > > If you dispatch an event in constructor, there may not possibly be any > handler added to the dispatcher. You have to dispatch an event *after *the > object is created and thus the reference to the object may be made. That is > in your example you should call myDispatchFunction() from init() *after *you > addEventListener(). > > Best. > > Oleg >

