cxfeng1 closed pull request #1445: [WEEX-573][iOS] try to solve transition's 
occasional crash
URL: https://github.com/apache/incubator-weex/pull/1445
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ios/sdk/WeexSDK/Sources/Model/WXComponent.mm 
b/ios/sdk/WeexSDK/Sources/Model/WXComponent.mm
index acdeb30d7d..5681183081 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXComponent.mm
+++ b/ios/sdk/WeexSDK/Sources/Model/WXComponent.mm
@@ -643,7 +643,7 @@ - (void)_updateStylesOnComponentThread:(NSDictionary 
*)styles resetStyles:(NSMut
     
     BOOL isTransitionTag = _transition ? [self _isTransitionTag:styles] : NO;
     if (isTransitionTag) {
-        [_transition _handleTransitionWithStyles:styles 
resetStyles:resetStyles target:self];
+        [_transition _handleTransitionWithStyles:[styles mutableCopy] 
resetStyles:resetStyles target:self];
     } else {
         styles = [self parseStyles:styles];
         [self _updateCSSNodeStyles:styles];


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to