Changed search function to take filter and option parameters

This commit is contained in:
macdonst
2010-09-16 11:35:49 -04:00
parent d955502ca2
commit 8da131cc45
7 changed files with 196 additions and 689 deletions

View File

@@ -101,11 +101,10 @@
function get_contacts()
{
var obj = new Contact();
var name = new ContactName();
name.givenName = '';
obj.name = name;
navigator.service.contacts.find(obj, count_contacts, fail);
var obj = new ContactFindOptions();
obj.filter="";
obj.multiple=true;
navigator.service.contacts.find(["name", "phone", "email"], count_contacts, fail, obj);
}
function count_contacts(contacts)