New hook for after the application route has activated
This commit is contained in:
parent
456a213904
commit
2ee3859c08
|
@ -80,8 +80,16 @@ Discourse.ApplicationRoute = Em.Route.extend({
|
|||
});
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
activate: function() {
|
||||
this._super();
|
||||
Em.run.next(function() {
|
||||
// Support for callbacks once the application has activated
|
||||
Discourse.ApplicationRoute.trigger('activate');
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
RSVP.EventTarget.mixin(Discourse.ApplicationRoute);
|
||||
|
|
Loading…
Reference in New Issue