I have spent some time trying to understand why removeEventListener 
would not remove an event listener. I have a Vbox that at run time I 
am adding a form to. In init of that form parent.addEventListener adds 
a listener to VBox. Then I am adding another form. That form is based 
on same class as first form is. So it adds same listener. But fisrt it 
parent.removeEventListener. Now, second form dispatches an event the 
VBox listens to and I see that a handler of that event runs twice. 
Once for the current form, then for the previous form that was removed 
from the VBox before I added second one. Can someone please explain 
why's that happening? 

Thank you.

Reply via email to