Revert "* [ios] unload view when component is valid"

This reverts commit 4c8c819ef9aa870dda98483ca46abe6c70f53458.


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

Branch: refs/heads/0.16-dev
Commit: 027cd7b97a64c05be79c0677497628550e9f83fc
Parents: b645d80
Author: acton393 <zhangxing610...@gmail.com>
Authored: Tue Sep 12 21:16:45 2017 +0800
Committer: acton393 <zhangxing610...@gmail.com>
Committed: Tue Sep 12 21:16:45 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/027cd7b9/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m 
b/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m
index 147dae9..55784b3 100644
--- a/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m
+++ b/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m
@@ -595,9 +595,7 @@ static css_node_t * rootNodeGetChild(void *context, int i)
     WXComponent *component;
     while ((component = [enumerator nextObject])) {
         dispatch_async(dispatch_get_main_queue(), ^{
-            if ([self isValid]) {
-                [component _unloadViewWithReusing:NO];
-            }
+            [component _unloadViewWithReusing:NO];
         });
     }
     

Reply via email to