Revert "* [ios] set default value to nil when the configuration is empty"
This reverts commit 4376205615fdcbd4fd9f118a02961e074eb057bf. Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/ccf0590b Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/ccf0590b Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/ccf0590b Branch: refs/heads/release Commit: ccf0590b344c4adce40030315b7be1d22dd99ac9 Parents: 4376205 Author: acton393 <[email protected]> Authored: Wed Oct 11 12:25:29 2017 +0800 Committer: acton393 <[email protected]> Committed: Wed Oct 11 12:25:29 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m | 4 ---- 1 file changed, 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ccf0590b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m index fafc41d..b7a522a 100644 --- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m +++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m @@ -122,13 +122,9 @@ WX_EXPORT_METHOD(@selector(resetLoadmore)) if (attributes[@"alwaysScrollableVertical"]) { _alwaysScrollableVertical = [WXConvert NSString:attributes[@"alwaysScrollableVertical"]]; - }else { - _alwaysScrollableVertical = nil; } if (attributes[@"alwaysScrollableHorizontal"]) { _alwaysScrollableHorizontal = [WXConvert NSString:attributes[@"alwaysScrollableHorizontal"]]; - } else { - _alwaysScrollableHorizontal = nil; } _pagingEnabled = attributes[@"pagingEnabled"] ? [WXConvert BOOL:attributes[@"pagingEnabled"]] : NO; _loadMoreOffset = attributes[@"loadmoreoffset"] ? [WXConvert WXPixelType:attributes[@"loadmoreoffset"] scaleFactor:self.weexInstance.pixelScaleFactor] : 0;
