Skip to content

Commit d8fd930

Browse files
committed
Fixes problem with calling wrong super method and importing RxCocoa.
1 parent 33bf826 commit d8fd930

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Sources/DataSources/CollectionViewSectionedDataSource.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
import Foundation
1010
import UIKit
11+
#if !RX_NO_MODULE
1112
import RxCocoa
13+
#endif
1214

1315
public class _CollectionViewSectionedDataSource
1416
: NSObject

Sources/DataSources/TableViewSectionedDataSource.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
import Foundation
1010
import UIKit
11+
#if !RX_NO_MODULE
1112
import RxCocoa
13+
#endif
1214

1315
// objc monkey business
1416
public class _TableViewSectionedDataSource
@@ -178,7 +180,7 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
178180

179181
override func _tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
180182
guard let canEditRow = canEditRowAtIndexPath?(self, indexPath: indexPath) else {
181-
return super._tableView(tableView, canEditRowAtIndexPath: indexPath)
183+
return super._tableView(tableView, canMoveRowAtIndexPath: indexPath)
182184
}
183185

184186
return canEditRow

0 commit comments

Comments
 (0)