Skip to content

publish event works only on page load #20

Open
@ktadikamalla

Description

@ktadikamalla

If we publish any notification based on some click event then that event is not sub scribed. if you invoke the below method based on some button click event then it does not perform the actions in subscribe event.

$("#testPlugin").testSubscribe().trigger("eventPublished");

But if we perform the below step on page load then it works.

$("#testPlugin").testSubscribe();
$("#testPlugin").testSubscribe().trigger("eventPublished");

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