Merge branch 'master' of github.com:travis-ci/travis-web

This commit is contained in:
Konstantin Haase 2013-01-08 15:10:59 +01:00
commit 5ca5b15f40

View File

@ -204,7 +204,7 @@ Travis.Router = Ember.Router.extend
dynamicSegmentPattern: "([^/#]+)"
connectOutlets: (router, repo) ->
unless repo.constructor == Travis.Repo
if repo && repo.constructor != Travis.Repo
repo = Travis.Repo.find(repo.id)
router.get('repoController').set 'repo', repo