unloadRecord -> unload

This commit is contained in:
Piotr Sarnacki 2013-07-31 13:44:56 +02:00
parent 92da0c8034
commit ded00e0182

View File

@ -14,9 +14,7 @@
@set('state', 'signed-out')
@set('user', undefined)
if user = Travis.__container__.lookup('controller:currentUser').get('content')
if user.get('stateManager.currentPath') == 'rootState.loaded.updated.uncommitted'
user.send('rollback')
user.unloadRecord()
user.unload()
Travis.__container__.lookup('controller:currentUser').set('content', null)
if router = Travis.__container__.lookup('router:main')
router.send('afterSignOut')