Skip to content

Issue when unbinding an unknown listener #19

Open
@vincent

Description

@vincent

Hi, thanks for the lib

in the unbind function here https://github.com/jeromeetienne/microevent.js/blob/master/microevent.js#L22

the -1 result of indexOf should be tested separately, no ?
it looks like the last registered listener is randomly "spliced" when unbind is called with an unknown listener.

Am I missing something ?

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