Merge pull request #210 from goshakkk/controller-for-depr

Get rid of 'controllerFor' deprecation warnings
This commit is contained in:
Piotr Sarnacki 2013-09-23 03:15:58 -07:00
commit a7f26ac4e2

View File

@ -51,7 +51,7 @@ Travis.RepoController = Travis.Controller.extend
lastBuildDidChange: ->
build = @get('repo.lastBuild')
@controllerFor('build').set('build', build)
@set('build', build)
stopObservingLastBuild: ->
@removeObserver('repo.lastBuild', this, 'lastBuildDidChange')