Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save barisere/2f6f977b04dd48f5b5aebd4cb0477c6e to your computer and use it in GitHub Desktop.
Save barisere/2f6f977b04dd48f5b5aebd4cb0477c6e to your computer and use it in GitHub Desktop.
const deleteHandler = {
handleEvent: (event: Event) => {
event.stopPropagation();
const id = event.srcElement.getAttribute('resourceId');
deleteRequests.set(event.srcElement, delayDeleteResource(id, 10000));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment