And just to go further: does the change of a web page (page1.html >
[click link] > page2.html) cause the destruction all of the event
listeners that were created in the first page? Do ALL the listeners
(read: the listeners to ALL the type of events) created in page1 get
destroied when I navigate to page2?



On 8 Lug, 21:58, Aaron Newton <[email protected]> wrote:
> > if you dispose the div does it remove the event listener?
>
> no
>
> > if you destroy the div div does it remove the event listener?
>
> yes
>
> > now the same question but with children of the div - ie does
> > destroying or disposing a parent div remove the event listeners from
> > the divs children?
>
> same answers. dispose: no, destroy: yes.
>
> You should just go look at the code to find this answer. You'll learn a lot
> (though it's fine of you to ask here, just saying this is a good reason to
> go read the source).

Reply via email to