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()
|
user.unload()
|
||||||
Travis.__container__.lookup('controller:currentUser').set('content', null)
|
Travis.__container__.lookup('controller:currentUser').set('content', null)
|
||||||
if router = Travis.__container__.lookup('router:main')
|
if router = Travis.__container__.lookup('router:main')
|
||||||
router.send('afterSignOut')
|
try
|
||||||
|
router.send('afterSignOut')
|
||||||
|
catch e
|
||||||
|
throw e unless e.message =~ /There are no active handlers/
|
||||||
|
|
||||||
|
|
||||||
signIn: (data) ->
|
signIn: (data) ->
|
||||||
if data
|
if data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user