Updates RxDataSources.

This commit is contained in:
Krunoslav Zaher 2016-05-15 20:44:41 +02:00
parent 8a3b47953d
commit 49b1481dff
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,6 @@ public struct SectionModel<Section, ItemType>
extension SectionModel {
public init(original: SectionModel<Section, Item>, items: [Item]) {
self.model = original.model
self.items = original.items
self.items = items
}
}

View File

@ -219,7 +219,7 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
}
override func _rx_tableView(tableView: UITableView, sectionForSectionIndexTitle title: String, atIndex index: Int) -> Int {
guard let section = sectionForSectionIndexTitle?(self, title: title, index: index) else {
guard let section = sectionForSectionIndexTitle?(self, title: title, index: index) else {
return super._rx_tableView(tableView, sectionForSectionIndexTitle: title, atIndex: index)
}