cordova-plugin-contacts
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
@@ -163,3 +163,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -166,0 +166,0 @@ ## navigator.contacts.pickContact |
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
@@ -138,3 +138,3 @@ <!--- | ||
var fields = [navigator.contacts.fieldType.displayName, navigator.contacts.fieldType.name]; | ||
navigator.contacts.find(onSuccess, onError, fields, options); | ||
navigator.contacts.find(fields, onSuccess, onError, options); | ||
@@ -141,0 +141,0 @@ |
{ | ||
"name": "cordova-plugin-contacts", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Cordova Contacts Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -86,3 +86,3 @@ <!-- | ||
### 0.2.11 (Jun 05, 2014) | ||
### 0.2.11 (Jul 2, 2014) | ||
* CB-6127 Spanish and French Translations added. Github close #25 | ||
@@ -99,1 +99,10 @@ * Remove deprecated symbols for iOS < 6 | ||
* Docs typo: navigator.contacts.length -> contacts.length | ||
* CB-5698 ios: Check to see if photoData exists before using | ||
* CB-7003 android: Make pickContact pick correct contact on Android 4.3 and 4.4.3 | ||
### 0.2.12 (Aug 06, 2014) | ||
* fixes .find method when 'options' param is not passed. Will return all contacts on missing 'options' param | ||
* [FFOS] update ContactsProxy.js | ||
* Removing a stray unicode character | ||
* CB-6127 Updated translations for docs | ||
* CB-5698 ios: Check to see if photoData exists before using |
@@ -464,2 +464,2 @@ /* | ||
require("cordova/firefoxos/commandProxy").add("Contacts", module.exports); | ||
require("cordova/exec/proxy").add("Contacts", module.exports); |
@@ -1,2 +0,2 @@ | ||
/* | ||
/* | ||
* | ||
@@ -3,0 +3,0 @@ * Licensed to the Apache Software Foundation (ASF) under one |
@@ -44,7 +44,9 @@ /* | ||
*/ | ||
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 { | ||
// missing 'options' param means return all contacts | ||
options = options || {filter: '', multiple: true} | ||
var win = function(result) { | ||
@@ -51,0 +53,0 @@ var cs = []; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
696530
58
2206