A quick search for “addEvent” in ui.lua highlights this line
button:addEventListener( "touch", button )
So you can see the event listener isn’t registered on the function directly but on the button object. Try this
doneBtn:removeEventListener("touch", doneBtn)
What exactly are you doing though? I’m wondering why keep displaying a button that isn’t functional. [import]uid: 12108 topic_id: 4587 reply_id: 14512[/import]
i am using the ui.lua, but not for table listing
It’s a ‘countdown’ button,
where once clicked, it will ticking, with a countdown number
So, the button has to be disable ‘re-click’ but still need to show it on screen