You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/11/06 07:39:29 UTC
[GitHub] cxfeng1 closed pull request #1718: [WEEX-484][iOS] Failure of
parsing transform parameter when in third-party
cxfeng1 closed pull request #1718: [WEEX-484][iOS] Failure of parsing transform parameter when in third-party
URL: https://github.com/apache/incubator-weex/pull/1718
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/Component/WXTransform.m b/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
index 89c4b9faff..0c09e5ce19 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTransform.m
@@ -260,16 +260,17 @@ - (void)parseTransform:(NSString *)cssValue
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) {
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services