0

I have tried to imitate some examples, but in my case it does not work, it may seem like another question but I have not really been able to solve it.

I have some listeners in my document.

    document.addEventListener("clmtrackrNotFound", function(event) {
        //bla bla
    }, false);

   // detect if tracker loses tracking of face
    document.addEventListener("clmtrackrLost", function(event) {
        //bla bla
    }, false);

    // detect if tracker has converged
    document.addEventListener("clmtrackrConverged", function(event ) {
   },false)

This is repeated every time I access the .js file. How can I remove them all?

yavg
  • 2,761
  • 7
  • 45
  • 115
  • @BobKruithof this answer not answered my problem. I have all my event listeners in "document" element.. – yavg Jul 25 '17 at 16:08
  • Please read all answers on above question, there is an answer which answers your question. To be specific here https://stackoverflow.com/questions/4386300/javascript-dom-how-to-remove-all-events-of-a-dom-object#answer-42377541 – shreyas tigdi Jul 25 '17 at 16:19
  • @shreyastigdi not works for me.. getEventListeners is not defined. I had already tried. – yavg Jul 25 '17 at 16:25
  • I see a lot of answers in the mentioned post, even for removing the eventListeners of the document. – halfpastfour.am Jul 25 '17 at 20:21

0 Answers0