-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
It seems that if I subscribe twice to the same channel with the same subscriber with the "once" method, then if I "publish", the channel will be executed twice for the subscriber !
I thought "once" would have meant :
- one subscription by subscriber, avoiding multiple subscriptions for the same subscriber.
- when published once, then unsubscribed (that part is ok).
Example :
mediator.once("test", function () { print("Hello world!"); });
mediator.once("test", function () { print("Hello world!"); });
mediator.publish("test");
...seem to print :
"Hello world!" "Hello world!"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels