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/03/16 08:59:11 UTC

[16/50] incubator-weex git commit: * [iOS] model WXSDKInstance update _options property

* [iOS] model WXSDKInstance update _options property


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

Branch: refs/heads/master
Commit: 0e8f171adc386e75c40168b41f8c2c0cb3a98de1
Parents: 5d8f468
Author: jinlin.liu <ji...@ele.me>
Authored: Fri Feb 24 14:59:20 2017 +0800
Committer: jinlin.liu <ji...@ele.me>
Committed: Fri Feb 24 14:59:20 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/0e8f171a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
index 35e9c0f..c0e67f7 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
@@ -187,7 +187,6 @@ typedef enum : NSUInteger {
 {
     NSURL *url = request.URL;
     _scriptURL = url;
-    _options = options;
     _jsData = data;
     NSMutableDictionary *newOptions = [options mutableCopy] ?: [NSMutableDictionary new];
     
@@ -199,7 +198,8 @@ typedef enum : NSUInteger {
         WXLogWarning(@"Error type in options with key:bundleUrl, should be of type NSString, not NSURL!");
         newOptions[bundleUrlOptionKey] = ((NSURL*)newOptions[bundleUrlOptionKey]).absoluteString;
     }
-    
+    _options = [newOptions copy];
+  
     if (!self.pageName || [self.pageName isEqualToString:@""]) {
         self.pageName = [WXUtility urlByDeletingParameters:url].absoluteString ? : @"";
     }