mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-31 09:56:55 +08:00
Update index_paths var assignment per @jamonholmgren's advice.
This commit is contained in:
@@ -82,7 +82,7 @@ module ProMotion
|
||||
|
||||
def delete_row(index_paths, animation = nil)
|
||||
animation ||= UITableViewRowAnimationAutomatic
|
||||
index_paths = [index_paths] unless index_paths.is_a? Array
|
||||
index_paths = Array(index_paths)
|
||||
|
||||
index_paths.each do |index_path|
|
||||
@promotion_table_data.delete_cell(index_path: index_path)
|
||||
|
||||
Reference in New Issue
Block a user