Don't fail if user signs out before router is set up
This commit is contained in:
parent
ded00e0182
commit
8daf5b857a
|
@ -17,7 +17,11 @@
|
|||
user.unload()
|
||||
Travis.__container__.lookup('controller:currentUser').set('content', null)
|
||||
if router = Travis.__container__.lookup('router:main')
|
||||
try
|
||||
router.send('afterSignOut')
|
||||
catch e
|
||||
throw e unless e.message =~ /There are no active handlers/
|
||||
|
||||
|
||||
signIn: (data) ->
|
||||
if data
|
||||
|
|
Loading…
Reference in New Issue
Block a user