lib/ProMotion/table/table.rb in ProMotion-2.8.2 vs lib/ProMotion/table/table.rb in ProMotion-3.0.0

- old
+ new

@@ -21,14 +21,10 @@ set_up_refreshable set_up_longpressable set_up_row_height end - def on_live_reload - update_table_data - end - def check_table_data mp("Missing #table_data method in TableScreen #{self.class.to_s}.", force_color: :red) unless self.respond_to?(:table_data) end def promotion_table_data @@ -123,10 +119,11 @@ end end def delete_row(index_paths, animation = nil) deletable_index_paths = [] - Array(index_paths).each do |index_path| + index_paths = [index_paths] if index_paths.kind_of?(NSIndexPath) + index_paths.each do |index_path| delete_cell = false delete_cell = trigger_action(:on_cell_deleted, cell_at(index_path: index_path), index_path) if respond_to?(:on_cell_deleted) unless delete_cell == false self.promotion_table_data.delete_cell(index_path: index_path)