You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michal Mocny (JIRA)" <ji...@apache.org> on 2013/02/22 21:24:13 UTC

[jira] [Created] (CB-2530) Add multiple argument support to callbackFromNative

Michal Mocny created CB-2530:
--------------------------------

             Summary: Add multiple argument support to callbackFromNative
                 Key: CB-2530
                 URL: https://issues.apache.org/jira/browse/CB-2530
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, CordovaJS, iOS
            Reporter: Michal Mocny
            Assignee: Michal Mocny
             Fix For: 2.6.0


callbackFromNative currently only supports a single argument to the win/fail callback.  I would like to implement support for any number of arguments.

This change would change the api of the callbackFromNative call to expect an array of arguments/message instead of just a single message.  The call sites are almost all in cordova-js, so the update should be trivial and not affect any plugins directly.

The end result will be that MultiPart plugin results on iOS will be able to call callback with the multiple arguments in the way a js function would expect them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira