[
https://issues.apache.org/jira/browse/CB-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227805#comment-13227805
]
Shazron Abdullah commented on CB-255:
-------------------------------------
We still need to support options like Fil mentioned. I've checked in the change
to support nulls.
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=blobdiff;f=CordovaLib/javascripts/core/cordova.js.base;h=be1cbdf650fdba91515a7e554ba42d9dc24db0c5;hp=98be37bd318893e86e15e86bd9d974bcc13ab39b;hb=f47a9a083afc5e7dda201723da5bd8dafe56621f;hpb=71a542e8d0f39a9f7f75c782d03007841c3d310b
> iOS: a parameter with value 'null' is not passed to 'arguments' array
> ----------------------------------------------------------------------
>
> Key: CB-255
> URL: https://issues.apache.org/jira/browse/CB-255
> Project: Apache Callback
> Issue Type: Bug
> Components: CordovaJS, iOS
> Affects Versions: 1.4.0
> Environment: iOS Mac OS X 10.7
> Reporter: Oleg Gryb
> Assignee: Shazron Abdullah
> Fix For: 1.6.0
>
>
> In the following JS call the second parameter (null) will not be passed to
> 'arguments' array in a Objective-C controller.
> The 'arguments' array will contain only first ('1') and third ('3')
> parameters.
>
> return PhoneGap.exec(successCallback,
> failureCallback,
> VPCLASS,
> 'method',
> [1, null, 3]);
> Hint: typeof(null) is equal to 'object' in JS. PhoneGap.js uses this check to
> determine if a parameter should go to 'arguments' or to 'options'
> collections.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira