Run Travis.Repo.find() before using recent repos

Becuase we use filter() now to get just the repos with the last build
into the sidebar, it will not fetch the request automatically.
This commit is contained in:
Piotr Sarnacki 2013-03-14 18:01:10 +01:00
parent b847dbd664
commit 46643e8315

View File

@ -17,6 +17,7 @@ Travis.ReposController = Ember.ArrayController.extend
Ember.run.later(@updateTimes.bind(this), Travis.INTERVALS.updateTimes)
recentRepos: (->
Travis.Repo.find()
Travis.LimitedArray.create
content: Em.ArrayProxy.extend(Em.SortableMixin).create(
sortProperties: ['sortOrder']