get rid of 'controllerFor' deprecation warnings
This commit is contained in:
parent
bc7d73c355
commit
62322318da
|
@ -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