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

incubator-weex git commit: * [iOS] convert to bool value for config

Repository: incubator-weex
Updated Branches:
  refs/heads/master 14059467b -> 86c7a7310


* [iOS] convert to bool value for config


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/86c7a731
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/86c7a731
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/86c7a731

Branch: refs/heads/master
Commit: 86c7a731096703326c0bf8725bae88d16b6a1107
Parents: 1405946
Author: acton393 <zh...@gmail.com>
Authored: Fri Mar 23 15:26:38 2018 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Mar 23 15:26:38 2018 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/86c7a731/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
index 891217a..9f9d152 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -107,7 +107,7 @@ WX_EXPORT_METHOD(@selector(save:))
         id<WXConfigCenterProtocol> configCenter = [WXSDKEngine handlerForProtocol:@protocol(WXConfigCenterProtocol)];
         _downloadImageWithURL = YES;
         if ([configCenter respondsToSelector:@selector(configForKey:defaultValue:isDefault:)]) {
-            _downloadImageWithURL = [configCenter configForKey:@"iOS_weex_ext_config.downloadImageWithURL" defaultValue:@(YES) isDefault:NULL];
+            _downloadImageWithURL = [[configCenter configForKey:@"iOS_weex_ext_config.downloadImageWithURL" defaultValue:@(YES) isDefault:NULL] boolValue];
         }
         if (attributes[@"compositing"]) {
             _downloadImageWithURL = [WXConvert BOOL:attributes[@"compositing"]];