You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/11/16 14:55:28 UTC
[2/3] incubator-weex git commit: [WEEX-102][iOS] bug-fix default
config center return value
[WEEX-102][iOS] bug-fix default config center return value
if config center can not find any config key value , it should
return default value but just nil value.
Bug: 102
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/539c71a1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/539c71a1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/539c71a1
Branch: refs/heads/master
Commit: 539c71a13fce45dee933b8cc73beb5265ad33727
Parents: f77f9cc
Author: acton393 <zh...@gmail.com>
Authored: Thu Nov 16 15:37:07 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Thu Nov 16 15:37:07 2017 +0800
----------------------------------------------------------------------
ios/playground/WeexDemo/WXConfigCenterDefaultImpl.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/539c71a1/ios/playground/WeexDemo/WXConfigCenterDefaultImpl.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXConfigCenterDefaultImpl.m b/ios/playground/WeexDemo/WXConfigCenterDefaultImpl.m
index ffb8f69..d127edb 100644
--- a/ios/playground/WeexDemo/WXConfigCenterDefaultImpl.m
+++ b/ios/playground/WeexDemo/WXConfigCenterDefaultImpl.m
@@ -39,7 +39,7 @@
if ([keys[0] isEqualToString:@"iOS_weex_prerender_config"] && [keys[1] isEqualToString:@"max_cache_num"]){
return @2;
}
- return nil;
+ return defaultValue;
}
@end