From 49b1481dff860b606b689da9e5da0795511edfae Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Sun, 15 May 2016 20:44:41 +0200 Subject: [PATCH] Updates RxDataSources. --- RxExample/RxDataSources/DataSources/SectionModel.swift | 2 +- .../DataSources/TableViewSectionedDataSource.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RxExample/RxDataSources/DataSources/SectionModel.swift b/RxExample/RxDataSources/DataSources/SectionModel.swift index a503b1d2..b0930158 100644 --- a/RxExample/RxDataSources/DataSources/SectionModel.swift +++ b/RxExample/RxDataSources/DataSources/SectionModel.swift @@ -34,6 +34,6 @@ public struct SectionModel extension SectionModel { public init(original: SectionModel, items: [Item]) { self.model = original.model - self.items = original.items + self.items = items } } \ No newline at end of file diff --git a/RxExample/RxDataSources/DataSources/TableViewSectionedDataSource.swift b/RxExample/RxDataSources/DataSources/TableViewSectionedDataSource.swift index f2e09e35..2fbc7bf7 100644 --- a/RxExample/RxDataSources/DataSources/TableViewSectionedDataSource.swift +++ b/RxExample/RxDataSources/DataSources/TableViewSectionedDataSource.swift @@ -219,7 +219,7 @@ public class RxTableViewSectionedDataSource } 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) }