Properly remove email notification on signout.

no ref
- Calls notifications.clear() on signout
This commit is contained in:
Fabian Becker 2014-07-30 13:32:19 +00:00
parent 11c0fe7a0f
commit a22f1d0d7a

View File

@ -5,6 +5,7 @@ var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleB
classNames: ['ghost-signout'],
afterModel: function (model, transition) {
this.notifications.clear();
if (Ember.canInvoke(transition, 'send')) {
transition.send('invalidateSession');
transition.abort();