Repository: incubator-weex
Updated Branches:
  refs/heads/master cb35e9260 -> 8838d6c2a


[Weex-404][iOS]Roll back try to fix insert table view cell exception abort on 
iOS


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8838d6c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8838d6c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8838d6c2

Branch: refs/heads/master
Commit: 8838d6c2a878160c61febbd54661d0844bb4865d
Parents: cb35e92
Author: Xiaomin <[email protected]>
Authored: Thu May 24 21:51:37 2018 +0800
Committer: Xiaomin <[email protected]>
Committed: Thu May 24 21:51:37 2018 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXListComponent.mm | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8838d6c2/ios/sdk/WeexSDK/Sources/Component/WXListComponent.mm
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.mm 
b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.mm
index e5a6123..854aa3a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.mm
+++ b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.mm
@@ -923,11 +923,6 @@
 
 - (void)_insertTableViewCellAtIndexPath:(NSIndexPath *)indexPath 
keepScrollPosition:(BOOL)keepScrollPosition 
animation:(UITableViewRowAnimation)animation
 {
-    NSInteger numberOfRows = ((WXSectionComponent *)[_sections 
wx_safeObjectAtIndex:indexPath.section]).rows.count;
-    if (indexPath.row > numberOfRows || indexPath.row < 0) {
-        WXLogError(@"inserting cell at row %ld out of range in section:%ld", 
indexPath.row, indexPath.section);
-        return;
-    }
     [self _performUpdates:^{
         if ([_updataType  isEqual: @"reload"]) {
             [_tableView reloadData];

Reply via email to