mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-26 23:30:38 +08:00
Also re-fixed issue #233 regression
This commit is contained in:
@@ -87,7 +87,8 @@ module ProMotion
|
||||
|
||||
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 = send(:on_cell_deleted, self.promotion_table_data.cell(index_path: index_path)) if self.respond_to?("on_cell_deleted:")
|
||||
unless delete_cell == false
|
||||
|
||||
Reference in New Issue
Block a user