I’m looking through ui.lua to understand exactly what it is doing (very instructive by the way) and I’m confused about if the event listener needs to be removed. I see button:addEventListener( "touch", button ) but no removeEventListener anywhere. Do event listeners automatically get cleaned up along with objects when they are garbage collected?
More generally, how do you get rid of buttons? Do you just call removeSelf on the button like you do with other graphics? [import]uid: 12108 topic_id: 4493 reply_id: 304493[/import]