Fix showMore

We use ArrayProxy with SortableMixin as container for builds, so
it needs to proxy load method to expandable record array.

closes #49
This commit is contained in:
Piotr Sarnacki 2012-11-10 16:30:16 +01:00
parent 630de8efc3
commit a039da5dd1
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,11 @@ Travis.RepoController = Travis.Controller.extend
sortProperties: ['number']
sortAscending: false
content: []
isLoadingBinding: 'content.isLoading'
load: (records) ->
content = @get('content')
if content && content.load
content.load(records)
)
updateTimes: ->

View File

@ -4,7 +4,7 @@
buildsBinding: 'controller.builds'
showMore: ->
id = @get('controller.repo.id')
id = @get('controller.repo.id')
number = @get('builds.lastObject.number')
@get('builds').load Travis.Build.olderThanNumber(id, number)