PDA

View Full Version : How do I remove a callback for tokeninstance.onDragEnd?



SilentRuin
March 27th, 2022, 00:45
Actually this question is for any of the callbacks in Token and tokeninstance - how do I unset them? For example...

tokeninstance.onDragEnd = myfunction;
or
Token.onDrag = myfunction;

How do I remove those settings in runtime? Experimentation seems to show that everytime I add one in - it will actually add it in as if its a list - and call it multiple times. I know how to push an entry onto this callback list as shown above - how do I pull off something in these callback lists?

Moon Wizard
March 27th, 2022, 05:39
You can not remove a callback from global handler registration.

Regards,
JPG