You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/06/27 20:42:44 UTC
[3/4] git commit: Revert change to argument order in
navigator.contacts.find
Revert change to argument order in navigator.contacts.find
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/432b0143
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/432b0143
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/432b0143
Branch: refs/heads/0.2.11
Commit: 432b0143442a689e349e347f33ee85aeb2d28663
Parents: 337e159
Author: Ian Clelland <ic...@chromium.org>
Authored: Fri Jun 27 14:13:34 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Jun 27 14:32:42 2014 -0400
----------------------------------------------------------------------
doc/index.md | 2 +-
www/contacts.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/432b0143/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index c64d73e..6f9cd54 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -160,7 +160,7 @@ parameter to control which contact properties must be returned back.
options.multiple = true;
options.desiredFields = [navigator.contacts.fieldType.id];
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name];
- navigator.contacts.find(onSuccess, onError, fields, options);
+ navigator.contacts.find(fields, onSuccess, onError, options);
## navigator.contacts.pickContact
http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/432b0143/www/contacts.js
----------------------------------------------------------------------
diff --git a/www/contacts.js b/www/contacts.js
index 1ecd28c..3185176 100644
--- a/www/contacts.js
+++ b/www/contacts.js
@@ -41,8 +41,8 @@ var contacts = {
* @param {ContactFindOptions} options that can be applied to contact searching
* @return array of Contacts matching search criteria
*/
- find:function(successCB, errorCB, fields, options) {
- argscheck.checkArgs('fFaO', 'contacts.find', arguments);
+ find:function(fields, successCB, errorCB, options) {
+ argscheck.checkArgs('afFO', 'contacts.find', arguments);
if (!fields.length) {
errorCB && errorCB(new ContactError(ContactError.INVALID_ARGUMENT_ERROR));
} else {