Created
March 19, 2014 04:14
-
-
Save CodeOfficer/9635335 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sessionInvalidationSucceeded: function() { | |
this.transitionTo(Ember.SimpleAuth.routeAfterInvalidation); | |
// unload all store data on logout | |
var store = this.container.lookup('store:main'); | |
var typeMaps = store.get('typeMaps'); | |
Ember.keys(typeMaps).forEach(function(type) { | |
var key = typeMaps[type].type; | |
store.unloadAll(key); | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment