You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/05/18 08:53:49 UTC
[1/2] incubator-weex git commit: * [ios] use bundlejs url when the
href for A component is empty
Repository: incubator-weex
Updated Branches:
refs/heads/0.13-dev 02ce702a4 -> d0c71ff3a
* [ios] use bundlejs url when the href for A component is empty
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/a09f529e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/a09f529e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/a09f529e
Branch: refs/heads/0.13-dev
Commit: a09f529e06619aafe1f96be894a2e99c3d5d1fac
Parents: b2672dc
Author: acton393 <zh...@gmail.com>
Authored: Tue May 16 18:54:28 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue May 16 18:54:28 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Component/WXAComponent.m | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/a09f529e/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
index 1893817..bd39f36 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXAComponent.m
@@ -60,6 +60,11 @@
- (void)openURL
{
+ if (_href && [_href length] == 0) {
+ // href is empty string
+ _href = self.weexInstance.scriptURL.absoluteString;
+ }
+
if (_href && [_href length] > 0) {
NSMutableString *newURL = [_href mutableCopy];
WX_REWRITE_URL(_href, WXResourceTypeLink, self.weexInstance)
[2/2] incubator-weex git commit: Merge branch
'ios-bugfix-a-component' of https://github.com/acton393/incubator-weex into
0.13-dev
Posted by cx...@apache.org.
Merge branch 'ios-bugfix-a-component' of https://github.com/acton393/incubator-weex into 0.13-dev
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/d0c71ff3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/d0c71ff3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/d0c71ff3
Branch: refs/heads/0.13-dev
Commit: d0c71ff3a6ee75ed515b6ad810ba38e28e87bf9f
Parents: 02ce702 a09f529
Author: cxfeng <cx...@apache.org>
Authored: Thu May 18 16:53:33 2017 +0800
Committer: cxfeng <cx...@apache.org>
Committed: Thu May 18 16:53:33 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Component/WXAComponent.m | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------