Use Chrome's webkit inspector to remove an event listener

后端 未结 5 1415
不知归路
不知归路 2020-12-29 07:28

I know you can see the event listeners in the Chrome Inspector but i\'m doing some debugging work and there are so many event listeners lying around I\'d like to disable som

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 08:00

    Sorry, you are out of luck (at least for the time being.) removeEventListener requires the exact listener Function object as an argument, and DevTools do not let you get a grip of the listener function in any way.

    If you definitely need this feature, please file a bug at http://new.crbug.com (against Chrome) or http://bugs.webkit.org (against WebKit, the preferred way).

提交回复
热议问题