I am searching for a way to iterate the object getEventListeners(obj)
returns.
This way, I wouldn't need specific code to iterate event listener types, or to check if they exist on the checked element.
My goal is to remove some event listeners from an element. For example remove all mouse related ones, and keep the others.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…