lib/ProMotion/table/table.rb in ProMotion-1.0.3 vs lib/ProMotion/table/table.rb in ProMotion-1.0.4

- old
+ new

@@ -178,19 +178,15 @@ return section_at_index(section)[:title] if section_at_index(section) && section_at_index(section)[:title] end # Set table_data_index if you want the right hand index column (jumplist) def sectionIndexTitlesForTableView(table_view) - if @promotion_table_data.filtered - nil + return nil if @promotion_table_data.filtered + + if self.respond_to?(:table_data_index) + self.table_data_index else - if self.respond_to?(:table_data_index) - self.table_data_index - elsif self.class.respond_to?(:get_indexable) && self.class.get_indexable - self.index_from_section_titles - else - nil - end + nil end end def tableView(table_view, cellForRowAtIndexPath:index_path) table_view_cell(index_path: index_path)