1
Does anyone know if there is a way in Javascript to remove events that are created using Arrow Functions instead of creating a function for it? Example:
document.querySelector(element).addEventListener('click', (ev)=>{
console.log('evento');
})
I wish to remove this created event, but how can I do it?
That function
getEventListeners
does not exist in browsers, only on the Chrome console.– bfavaretto
Poxa, knew not '-', it’s good to know that the console does not reflect 100% a javascript script
– Oto