Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastienblanc/9652648 to your computer and use it in GitHub Desktop.
Save sebastienblanc/9652648 to your computer and use it in GitHub Desktop.
load: function() {
var self = this;
var contactList = new ContactFindOptions();
contactList.filter="Bobby";
contactList.multiple=true;
var fields = ["id","displayName", "phoneNumbers"];
navigator.contacts.find(fields,function(contacts){
  self._dataManager.remove();
return self._dataManager.save(contacts);
},
function(error){alert(error);}
,contactList );
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment