You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Hi,
it is really rare that we publish any notifications on ready event, most of the notifications would be on any events like button click or text box leave events, if we are not able to initialize plugin and publish notifications on events like button click I am trying to understand the work flow for this plugin what are the scenarios we can use this plugin just on ready event at the time of page load?
This is true (re: notifications being broadcast on interactions with the page). I need to re-check this pattern but the publish events should be possible even after the plugin has been initialized to be really useful. Perhaps we need to consider simplifying this down a bit.
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.
But if we perform the below step on page load then it works.
$("#testPlugin").testSubscribe();
$("#testPlugin").testSubscribe().trigger("eventPublished");
The text was updated successfully, but these errors were encountered: