New hook for after the application route has activated

This commit is contained in:
Robin Ward 2014-01-09 14:28:42 -05:00
parent 456a213904
commit 2ee3859c08
1 changed files with 10 additions and 2 deletions

View File

@ -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);