No need to specify path when path is the same as name
This commit is contained in:
parent
9d4146f155
commit
b771f79587
|
@ -52,8 +52,8 @@ Travis.ApplicationRoute = Travis.Route.extend
|
|||
Travis.Router.map ->
|
||||
@resource 'index', path: '/', ->
|
||||
@resource 'getting_started'
|
||||
@route 'recent', path: '/recent'
|
||||
@route 'my_repositories', path: '/my_repositories'
|
||||
@route 'recent'
|
||||
@route 'my_repositories'
|
||||
@resource 'repo', path: '/:owner/:name', ->
|
||||
@route 'index', path: '/'
|
||||
@resource 'build', path: '/builds/:build_id'
|
||||
|
@ -166,7 +166,6 @@ Travis.IndexTabRoute = Travis.Route.extend
|
|||
@currentRepoDidChange()
|
||||
@controllerFor('repos').addObserver('firstObject', this, 'currentRepoDidChange')
|
||||
|
||||
|
||||
deactivate: ->
|
||||
@controllerFor('repos').removeObserver('firstObject', this, 'currentRepoDidChange')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user