Question
It's a Listener's Life
What happens to a listener registered on a non-display object
that is declared within a function? Does it live forever? Does it
make the object outlive the function containing it by virtue of the
'event.target' reference to it? Is it necessary then, to employ:
'event.target.removeEventListener(...)' within that listener itself
in order to clean things up?
Many thanks for any advice!
(and appologies for possibly missing something fundamental and asking a trivial question.. I'm still low on that learning curve...)
Many thanks for any advice!
(and appologies for possibly missing something fundamental and asking a trivial question.. I'm still low on that learning curve...)