# Removing listeners

**URL:** <https://forum.kirupa.com/t/removing-listeners/264772>\
**Category:** Uncategorized\
**Created:** [June 30, 2008, 12:50pm UTC](https://forum.kirupa.com/t/removing-listeners/264772 "2008-06-30T12:50:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elyleebert](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@elyleebert](https://forum.kirupa.com/u/elyleebert)\
**Post date:** [June 30, 2008, 12:50pm UTC](https://forum.kirupa.com/t/removing-listeners/264772/1 "2008-06-30T12:50:45Z")

</div>

Hi

If I were to have a list box component on screen which had an event listener to get changes, when navigating away from the current screen, is it a good idea to remove any listeners that exists in that frame? If so, what is the best way to do it.

Is this best practice in clearing up listeners?

Cheers

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 1:26pm UTC](https://forum.kirupa.com/t/removing-listeners/264772/2 "2008-06-30T13:26:27Z")

</div>

delete? followed by the specific listener

why do you want to delete the listener?

---

<div class="post-metadata">

**Author:** ![elyleebert](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@elyleebert](https://forum.kirupa.com/u/elyleebert)\
**Post date:** [June 30, 2008, 1:56pm UTC](https://forum.kirupa.com/t/removing-listeners/264772/3 "2008-06-30T13:56:35Z")

</div>

why do you want to delete the listener?

Thats partly my question… is there a need to delete listeners once they are no longer required, ie moved to a different frame or are you supposed to practice good housekeeping?

I am a little unsure of listener protocol.

Cheers

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 2:09pm UTC](https://forum.kirupa.com/t/removing-listeners/264772/4 "2008-06-30T14:09:06Z")

</div>

I suppose it could reduce processing power to delete it, and potential cross-miss communication

but you would have start it back up again if you returned to the section in questions
