fix clickDelete event

This commit is contained in:
Max Sokolov 2016-05-24 11:55:09 +03:00
parent b1f3b110b1
commit 79aef4dd39
2 changed files with 0 additions and 8 deletions

View File

@ -226,15 +226,7 @@ public extension TableDirector {
public func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
if editingStyle == .Delete {
invokeAction(.clickDelete, cell: tableView.cellForRowAtIndexPath(indexPath), indexPath: indexPath)
let builderInfo = builderAtIndexPath(indexPath)
builderInfo.0.removeItemAtIndex(builderInfo.1)
tableView.beginUpdates()
tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Automatic)
tableView.endUpdates()
}
}
}