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?
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?