Skip to content

unbind accepts several event types #146

Closed
@PhiLhoSoft

Description

@PhiLhoSoft

I read the unbind documentation. I use unbind instead of off, because I work on a legacy project.
Anyway, I see the bind doc defines eventType as "A string containing one or more DOM event types", while unbind defines it as "A string containing a JavaScript event type".
So it is unclear if we can specify several event types in unbind.
I tried the example of the page, adding mouseenter to click, and it worked.
So I suggest to update the doc to reflect this fact. Or to openly discourage this practice, if it is frowned upon... (but parameterless unbind is "worse", so...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions