Repository: cordova-osx Updated Branches: refs/heads/master 6370c1e13 -> 4b1b68e36
Support for multi-dimensional js array/objects Previous implementation was not parsing multi-dimensional JS array > object properly. Replacing it with webkit javascriptCore implementation solved it. (From OSX 10.5) Project: http://git-wip-us.apache.org/repos/asf/cordova-osx/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-osx/commit/5ca3a7c8 Tree: http://git-wip-us.apache.org/repos/asf/cordova-osx/tree/5ca3a7c8 Diff: http://git-wip-us.apache.org/repos/asf/cordova-osx/diff/5ca3a7c8 Branch: refs/heads/master Commit: 5ca3a7c8b023e47112d7731155e6d72777c78618 Parents: 6370c1e Author: Sahil Bhardwaj <[email protected]> Authored: Tue Dec 22 12:21:09 2015 +0530 Committer: Tobias Bocanegra <[email protected]> Committed: Fri Jan 8 13:05:09 2016 -0800 ---------------------------------------------------------------------- CordovaLib/CordovaLib/Classes/CDVBridge.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/5ca3a7c8/CordovaLib/CordovaLib/Classes/CDVBridge.m ---------------------------------------------------------------------- diff --git a/CordovaLib/CordovaLib/Classes/CDVBridge.m b/CordovaLib/CordovaLib/Classes/CDVBridge.m index d9c3466..aafb541 100644 --- a/CordovaLib/CordovaLib/Classes/CDVBridge.m +++ b/CordovaLib/CordovaLib/Classes/CDVBridge.m @@ -18,6 +18,7 @@ */ #import <WebKit/WebKit.h> +#import <JavascriptCore/JavascriptCore.h> #include <objc/message.h> #import "CDVBridge.h" @@ -112,7 +113,7 @@ // between iOS and OS X. Also we are going async as well. // we're just going to assume the webScriptObject passed in is an NSArray - NSArray* arguments = [self convertWebScriptObjectToNSArray:webScriptObject]; + NSArray* arguments = [[webScriptObject JSValue] toArray]; CDVInvokedUrlCommand* command = [[CDVInvokedUrlCommand alloc] initWithArguments:arguments callbackId:callbackId className:service methodName:action]; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
