Skip to content

Allow bean.off to use selectors as bean.on does #127

@jotadepicas

Description

@jotadepicas

Hi,
I'm currently using:

bean.on(element, 'click', '[my-selector]', myHandler)

But I cannot use:

bean.off(element, 'click', '[my-selector]', myHandler)

Since according to the documentation bean.off only accepts this arguments:

off(element[, eventType[, handler ]])

In fact, my event is not removed and then when bean.on executes again, is added multiple times.
It makes sense to me that if bean.on allows for selectors to be used, then bean.off should too, right?

Thanks!

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