lib/ProMotion/table/table.rb in ProMotion-2.7.0 vs lib/ProMotion/table/table.rb in ProMotion-2.7.1

- old
+ new

@@ -90,21 +90,13 @@ self.view.estimatedRowHeight = params[:estimated] end end def searching? - self.promotion_table_data.filtered + self.promotion_table_data.filtered? end - def original_search_string - self.promotion_table_data.original_search_string - end - - def search_string - self.promotion_table_data.search_string - end - def update_table_view_data(data, args = {}) self.promotion_table_data.data = data if args[:index_paths] args[:animation] ||= UITableViewRowAnimationNone @@ -112,14 +104,10 @@ table_view.reloadRowsAtIndexPaths(Array(args[:index_paths]), withRowAnimation: args[:animation]) table_view.endUpdates else table_view.reloadData end - - if searching? && @table_search_display_controller.respond_to?(:searchResultsTableView) - @table_search_display_controller.searchResultsTableView.reloadData - end end def accessory_toggled_switch(switch) table_cell = closest_parent(UITableViewCell, switch) index_path = closest_parent(UITableView, table_cell).indexPathForCell(table_cell) @@ -191,10 +179,10 @@ section && section[:footer] end # Set table_data_index if you want the right hand index column (jumplist) def sectionIndexTitlesForTableView(_) - return if self.promotion_table_data.filtered + return if searching? return self.table_data_index if self.respond_to?(:table_data_index) nil end def tableView(_, cellForRowAtIndexPath: index_path)