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/23 09:53:44 UTC
incubator-weex git commit: + [ios] support mutable arguments
Repository: incubator-weex
Updated Branches:
refs/heads/0.11-dev 1ce479e74 -> bb68f88aa
+ [ios] support mutable arguments
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/bb68f88a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/bb68f88a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/bb68f88a
Branch: refs/heads/0.11-dev
Commit: bb68f88aac5fa458bd9b0a65605be152adf70513
Parents: 1ce479e
Author: \u516e\u74dc <xi...@alibaba-inc.com>
Authored: Thu Mar 23 17:13:23 2017 +0800
Committer: \u516e\u74dc <xi...@alibaba-inc.com>
Committed: Thu Mar 23 17:13:23 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.h | 2 +-
ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.m | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bb68f88a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.h b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.h
index 5cfc657..bfea44b 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.h
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.h
@@ -12,7 +12,7 @@
@interface WXBridgeMethod : NSObject
@property (nonatomic, strong, readonly) NSString *methodName;
-@property (nonatomic, copy, readonly) NSArray *arguments;
+@property (nonatomic, copy, readonly) NSMutableArray *arguments;
@property (nonatomic, weak, readonly) WXSDKInstance *instance;
- (instancetype)initWithMethodName:(NSString *)methodName
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bb68f88a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.m
index c872412..ea8065e 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.m
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeMethod.m
@@ -21,7 +21,7 @@
{
if (self = [super init]) {
_methodName = methodName;
- _arguments = arguments;
+ _arguments = [NSMutableArray arrayWithArray:arguments];
_instance = instance;
}