Repository: incubator-weex Updated Branches: refs/heads/0.16-dev 5c90b13a7 -> b7631a359
* [ios] fix transition filter crash bug Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/6c4ca522 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/6c4ca522 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/6c4ca522 Branch: refs/heads/0.16-dev Commit: 6c4ca5227956fef24fb31af2510e885371bf0f41 Parents: e52d273 Author: doumafang <[email protected]> Authored: Mon Sep 18 11:31:16 2017 +0800 Committer: doumafang <[email protected]> Committed: Mon Sep 18 11:31:16 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/6c4ca522/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 55784b3..c53d5f1 100644 --- a/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m +++ b/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.m @@ -436,12 +436,11 @@ static css_node_t * rootNodeGetChild(void *context, int i) NSMutableDictionary *normalStyles = [NSMutableDictionary new]; NSMutableArray *resetStyles = [NSMutableArray new]; [self filterStyles:styles normalStyles:normalStyles resetStyles:resetStyles]; - - [component _updateStylesOnMainThread:normalStyles resetStyles:resetStyles]; + [component _updateStylesOnMainThread:[normalStyles copy] resetStyles:resetStyles]; [component readyToRender]; WXPerformBlockOnComponentThread(^{ - [component _updateStylesOnComponentThread:normalStyles resetStyles:resetStyles isUpdateStyles:isUpdateStyles]; + [component _updateStylesOnComponentThread:[normalStyles copy] resetStyles:resetStyles isUpdateStyles:isUpdateStyles]; }); }
