travis-web/app/routes/main/recent.coffee
Piotr Sarnacki cf9bea3ea5 Call super in deactivate/activate in main/recent route
The problem that I identified earlier as a Safari bug turned out to be a
bug in main/recent route. Not calling super in deactivate resulted in
code to remove observer not being executed at all.
2015-02-20 13:18:15 +01:00

16 lines
363 B
CoffeeScript

`import TravisRoute from 'travis/routes/basic'`
`import MainTabRoute from 'travis/routes/main-tab'`
Route = MainTabRoute.extend
reposTabName: 'recent'
activate: ->
@_super.apply(this, arguments)
@store.set('isRecentTabOpen', true)
deactivate: ->
@_super.apply(this, arguments)
@store.set('isRecentTabOpen', false)
`export default Route`