Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Master
-
Patch, Important
Description
This bug entry corresponds to pull request https://github.com/apache/cordova-osx/pull/29
Detail:
As we send arguments with commands to objc from javascript, current implementation "convertWebScriptObjectToNSArray" and "convertWebScriptObjectToNSDictionary" converts Javascript objects to NSArray/NSDictionary but it doesn't parse the children at 2nd level and show zero elements in there.
Input:
x = { a : { b:
{ c : "Hi" }} };
Output:
x = { a : { b : { } } };
Solution:
Replace the current method with "[[webScriptObject JSValue] toArray]" which a native method of apple webkit solves the problem.
Please give a look at pull request
https://github.com/apache/cordova-osx/pull/29