You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by da...@apache.org on 2017/07/24 12:37:32 UTC

[40/50] incubator-weex git commit: + [ios] update tracing logic @notdanger

+ [ios] update tracing logic @notdanger


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

Branch: refs/heads/0.16-dev
Commit: 898b8a246652562195f35a4c401b5ad8679ed0b3
Parents: d3cadef
Author: 齐山 <su...@163.com>
Authored: Fri Jul 21 18:00:46 2017 +0800
Committer: 齐山 <su...@163.com>
Committed: Fri Jul 21 18:00:46 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Manager/WXTracingManager.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/898b8a24/ios/sdk/WeexSDK/Sources/Manager/WXTracingManager.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Manager/WXTracingManager.m b/ios/sdk/WeexSDK/Sources/Manager/WXTracingManager.m
index a70a798..af801a3 100644
--- a/ios/sdk/WeexSDK/Sources/Manager/WXTracingManager.m
+++ b/ios/sdk/WeexSDK/Sources/Manager/WXTracingManager.m
@@ -280,9 +280,11 @@
             WXPerformBlockOnComponentThread(^{
                 WXSDKInstance *instance = [WXSDKManager instanceForID:task.iid];
                 WXComponent *com = [instance componentForRef:tracing.ref];
+                if(task.bundleUrl.length == 0){
+                    task.bundleUrl = [instance.scriptURL absoluteString];
+                }
                 if(com.supercomponent){
                     tracing.parentRef = com.supercomponent.ref;
-                    task.bundleUrl = [instance.scriptURL absoluteString];
                 }
             });
         }