Skip to content

Property 'remove' does not exist on type 'Window & typeof globalThis' #86

@christowiz

Description

@christowiz

The feature detection for event listener third argument is calling the wrong method on window

window.remove('testpassive', arg, arg);

It should be

window.removeEventListener('testpassive', arg, arg);

This comes from the URL referenced in the comment above it: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection

window.remove('testpassive', arg, arg);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions