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

Reply via email to