diff --git a/app/routes/main-tab.coffee b/app/routes/main-tab.coffee index d35a328a..7c454bd5 100644 --- a/app/routes/main-tab.coffee +++ b/app/routes/main-tab.coffee @@ -17,6 +17,9 @@ Route = TravisRoute.extend deactivate: -> @controllerFor('repos').removeObserver('firstObject', this, 'currentRepoDidChange') + resetController: -> + @controllerFor('repos').removeObserver('firstObject', this, 'currentRepoDidChange') + currentRepoDidChange: -> if repo = @controllerFor('repos').get('firstObject') @controllerFor('repo').set('repo', repo)