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: ->
|
lastBuildDidChange: ->
|
||||||
build = @get('repo.lastBuild')
|
build = @get('repo.lastBuild')
|
||||||
@controllerFor('build').set('build', build)
|
@set('build', build)
|
||||||
|
|
||||||
stopObservingLastBuild: ->
|
stopObservingLastBuild: ->
|
||||||
@removeObserver('repo.lastBuild', this, 'lastBuildDidChange')
|
@removeObserver('repo.lastBuild', this, 'lastBuildDidChange')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user