* [iOS] update config

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

Branch: refs/heads/master
Commit: 0b2a0b992c9316566a11ed16c123dfea35ce1514
Parents: e49b2a7
Author: acton393 <[email protected]>
Authored: Fri Dec 29 15:18:03 2017 +0800
Committer: acton393 <[email protected]>
Committed: Fri Dec 29 15:18:03 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/0b2a0b99/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m 
b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
index 71ee423..26b327d 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
@@ -442,7 +442,6 @@ _Pragma("clang diagnostic pop") \
     NSMutableArray *sendQueue = [NSMutableArray array];
     [self.sendQueue setValue:sendQueue forKey:instanceIdString];
     NSArray *args = nil;
-    NSString * bundleType = [self _pareJSBundleType:instanceIdString 
jsBundleString:jsBundleString]; // bundleType can be Vue, Rax and the new 
framework.
     WX_MONITOR_INSTANCE_PERF_START(WXFirstScreenJSFExecuteTime, [WXSDKManager 
instanceForID:instanceIdString]);
     WX_MONITOR_INSTANCE_PERF_START(WXPTJSCreateInstance, [WXSDKManager 
instanceForID:instanceIdString]);
     id configCenter = [WXSDKEngine 
handlerForProtocol:@protocol(WXConfigCenterProtocol)];
@@ -452,7 +451,10 @@ _Pragma("clang diagnostic pop") \
     }
     __weak typeof(self) weakSelf = self;
     JSContext *globalContex = ([(JSContext*)weakSelf.jsBridge 
valueForKey:@"jsContext"]);
-   
+    NSString * bundleType = nil;
+    if (shoudMultiContext) {
+        bundleType = [self _pareJSBundleType:instanceIdString 
jsBundleString:jsBundleString]; // bundleType can be Vue, Rax and the new 
framework.
+    }
     if (bundleType&&shoudMultiContext) {
         NSMutableDictionary *newOptions = [options mutableCopy];
         if (!options) {

Reply via email to