+ [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: é½å±± <[email protected]> Authored: Fri Jul 21 18:00:46 2017 +0800 Committer: é½å±± <[email protected]> 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]; } }); }
