You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2018/11/06 07:39:32 UTC

[incubator-weex] branch release updated: [WEEX-484][iOS] Failure of parsing transform parameter when in third-party environment (#1718)

This is an automated email from the ASF dual-hosted git repository.

cxfeng pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/release by this push:
     new c269fb0  [WEEX-484][iOS] Failure of parsing transform parameter when in third-party environment (#1718)
c269fb0 is described below

commit c269fb019a2b5c9cbdb75d8e460d28c5866142cf
Author: Douma Fang <do...@gmail.com>
AuthorDate: Tue Nov 6 15:39:28 2018 +0800

    [WEEX-484][iOS] Failure of parsing transform parameter when in third-party environment (#1718)
---
 ios/sdk/WeexSDK/Sources/Component/WXTransform.m | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTransform.m b/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
index 89c4b9f..0c09e5c 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
@@ -260,16 +260,17 @@
         if ([self respondsToSelector:method]) {
             @try {
                 id<WXConfigCenterProtocol> configCenter = [WXSDKEngine handlerForProtocol:@protocol(WXConfigCenterProtocol)];
+                BOOL parseTransformIfWaitUntilDone = NO;
                 if ([configCenter respondsToSelector:@selector(configForKey:defaultValue:isDefault:)]) {
-                    BOOL parseTransformIfWaitUntilDone = [[configCenter configForKey:@"iOS_weex_ext_config.parseTransformIfWaitUntilDone" defaultValue:@(NO) isDefault:NULL] boolValue];
-                    if (parseTransformIfWaitUntilDone) {
-                        [self performSelectorOnMainThread:method withObject:value waitUntilDone:YES];
-                    }
-                    else{
-                        IMP imp = [self methodForSelector:method];
-                        void (*func)(id, SEL,NSArray *) = (void *)imp;
-                        func(self, method,value);
-                    }
+                    parseTransformIfWaitUntilDone = [[configCenter configForKey:@"iOS_weex_ext_config.parseTransformIfWaitUntilDone" defaultValue:@(NO) isDefault:NULL] boolValue];
+                }
+                if (parseTransformIfWaitUntilDone) {
+                    [self performSelectorOnMainThread:method withObject:value waitUntilDone:YES];
+                }
+                else{
+                    IMP imp = [self methodForSelector:method];
+                    void (*func)(id, SEL,NSArray *) = (void *)imp;
+                    func(self, method,value);
                 }
             }
             @catch (NSException *exception) {