Skip to content

Add a getEvent function #4

@cahnory

Description

@cahnory

The best way to use custom event is, until now:

$(elements).on(Plugin.events.customEventName, function () {});

I'm considering adding a new method to the Plugin object:

$(elements).on(Plugin.getEvent(customEventString), function () {});

The main goal is to ease the use of namespaced and/or multiple custom events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions