Clean up compare route on exit

This commit is contained in:
Matthew Dillon 2015-06-23 18:55:16 -08:00
parent 4c8cbd20c7
commit f95b6e4c5f

View file

@ -1,4 +1,12 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin);
export default Ember.Route.extend(AuthenticatedRouteMixin, {
resetController: function(controller, isExiting /*, transition*/) {
if (isExiting) {
controller.set('data', null);
controller.set('strains', null);
controller.set('dataEmpty', true);
}
}
});