You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Carlos Santana (JIRA)" <ji...@apache.org> on 2014/06/24 21:52:24 UTC
[jira] [Created] (CB-7020) Contacts find function signature making
mobilespec fail
Carlos Santana created CB-7020:
----------------------------------
Summary: Contacts find function signature making mobilespec fail
Key: CB-7020
URL: https://issues.apache.org/jira/browse/CB-7020
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Contacts
Affects Versions: Master
Reporter: Carlos Santana
Back in April [1] when navigator.contacts.pickContact() was added the signature for navigator.contacts.find() was changed
From:
navigator.contacts.find:function(fields, successCB, errorCB, options) {
To:
navigator.contacts.find:function(successCB, errorCB, fields, options) {
I think this is a braking change and the reason why mobilespec is failing.
If there are no objections I think the find method should be put back as it was before publishing a new version with a different api signature. I created an issue [2] to track
Or if the consensus is for find function to have a new signature, then the version of the plugin needs to be increase to reflect the api break, and maybe a note in the doc.
[1]: https://github.com/apache/cordova-plugin-contacts/commit/d656191c4072cbef0bf5b3b5f5eb4dfe4817d25b#diff-6a72b46d7f0c34e1070ce85b959f30fcR46
--
This message was sent by Atlassian JIRA
(v6.2#6252)