Merge pull request #210 from goshakkk/controller-for-depr
Get rid of 'controllerFor' deprecation warnings
This commit is contained in:
commit
a7f26ac4e2
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user