A
A
Anton2020-05-11 16:37:29
JavaScript
Anton, 2020-05-11 16:37:29

What is the best way to clear old events?

I had a problem, in my context menu (right-clicking in a square block), when I click on delete, a tag is displayed in the console. Each time you press RMB, the event is remembered and many results are printed to the console, and with each subsequent press, more and more tags will be displayed. Tell me where and which handler to remove, or to take it out of the function so that only the current tag is displayed, without the previous ones? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question