[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] close MultiJSThread and add some log
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Sep 16, 2019
1 parent c06d42e commit 08345d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Manager/WXBridgeManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ - (instancetype)init
self = [super init];
if (self) {
_bridgeCtx = [[WXBridgeContext alloc] init];
_supportMultiJSThread = YES;
_supportMultiJSThread = NO;
_jsTaskQueue = [NSMutableArray array];
}
return self;
Expand Down
3 changes: 3 additions & 0 deletions ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ - (void)renderWithURL:(NSURL *)url options:(NSDictionary *)options data:(id)data
WXLogError(@"Url must be passed if you use renderWithURL");
return;
}
WXLogInfo(@"pageid: %@ renderWithURL: %@", _instanceId, url.absoluteString);
[WXCoreBridge install];
if (_useBackupJsThread) {
[[WXSDKManager bridgeMgr] executeJSTaskQueue];
Expand All @@ -337,6 +338,8 @@ - (void)renderView:(id)source options:(NSDictionary *)options data:(id)data
{
_options = [options isKindOfClass:[NSDictionary class]] ? options : nil;
_jsData = data;
WXLogInfo(@"pageid: %@ renderView pageNmae: %@ options: %@", _instanceId, _pageName, options);

[WXCoreBridge install];
if (_useBackupJsThread) {
[[WXSDKManager bridgeMgr] executeJSTaskQueue];
Expand Down

0 comments on commit 08345d7

Please sign in to comment.