mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-03-16 22:20:23 +00:00
temporarily deferring s subscription.created event message
This commit is contained in:
parent
9c48bb6ad6
commit
c0f25ea4b4
1 changed files with 8 additions and 6 deletions
|
|
@ -8,12 +8,14 @@ var SubscriptionDefinition = function(exchange, topic, callback) {
|
|||
this.onHandled = NO_OP;
|
||||
this.context = null;
|
||||
|
||||
postal.publish(SYSTEM_EXCHANGE, "subscription.created",
|
||||
{
|
||||
event: "subscription.created",
|
||||
exchange: exchange,
|
||||
topic: topic
|
||||
});
|
||||
_.defer(function() {
|
||||
postal.publish(SYSTEM_EXCHANGE, "subscription.created",
|
||||
{
|
||||
event: "subscription.created",
|
||||
exchange: exchange,
|
||||
topic: topic
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
SubscriptionDefinition.prototype = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue