Skip to main content
Known Participant
February 18, 2011
Answered

Removing an event listener from buttons

  • February 18, 2011
  • 1 reply
  • 447 views

Hi.

I´d like to know if it´s necessary to remove event listeners from buttons.

I know it's good practice to remove event listeners when its use is over.

But it´s necessary to remove event listeners for buttons as well?

Thanks

This topic has been closed for replies.
Correct answer kglad

it's necessary if you want to ready your buttons for gc.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 19, 2011

it's necessary if you want to ready your buttons for gc.