mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
New hook for after the application route has activated
This commit is contained in:
parent
456a213904
commit
2ee3859c08
1 changed files with 10 additions and 2 deletions
|
@ -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 a new issue