Skip to content

events filter: add a delegate target to event param which pass to handler #37

@black-black-cat

Description

@black-black-cat

Do your guys think that it is easier to use to add a delegate target property to event param which pass to handler, such as:


e.delegateTarget = closest(e.target, selector);
handler.call(element, e);

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