How to correctly call a function from an event handler that will delete the event handler mid-flight?

How to correctly call a function from an event handler that will delete the event handler mid-flight?

Hi guys,

I'm wanting a table cell click event to remove and replace the table it was clicked on, however I'm finding that as it's deleting the original table object the actual running event code is being replaced and the function is bailing.

Any ideas how I can call the delete/refresh function from outside the event's function scope?

Many thanks