Prepare repo controller for ES6

This commit is contained in:
Piotr Sarnacki 2015-01-20 14:39:42 +01:00
parent 8f075662ac
commit 3aabd40874

View File

@ -1,4 +1,6 @@
Travis.RepoController = Ember.Controller.extend githubRepo = Travis.Urls.githubRepo
Controller = Ember.Controller.extend
needs: ['repos', 'currentUser', 'build', 'request', 'job'] needs: ['repos', 'currentUser', 'build', 'request', 'job']
currentUserBinding: 'controllers.currentUser' currentUserBinding: 'controllers.currentUser'
@ -88,5 +90,7 @@ Travis.RepoController = Ember.Controller.extend
@set('tab', tab) @set('tab', tab)
urlGithub: (-> urlGithub: (->
Travis.Urls.githubRepo(@get('repo.slug')) githubRepo(@get('repo.slug'))
).property('repo.slug') ).property('repo.slug')
Travis.RepoController = Controller