[
https://issues.apache.org/jira/browse/WEEX-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16676304#comment-16676304
]
ASF GitHub Bot commented on WEEX-484:
-------------------------------------
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:
[email protected]
> Failure of parsing transform parameter when in third-party environment
> -----------------------------------------------------------------------
>
> Key: WEEX-484
> URL: https://issues.apache.org/jira/browse/WEEX-484
> Project: Weex
> Issue Type: Bug
> Reporter: qz
> Assignee: Adam Feng
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)