Fixing Contacts.find to use PluginResult

This commit is contained in:
macdonst
2010-10-04 09:47:12 +08:00
parent c80397ad68
commit 2bbf62c489
7 changed files with 17 additions and 16 deletions
+1 -4
View File
@@ -1043,10 +1043,7 @@ var Contacts = function() {
}
Contacts.prototype.find = function(fields, win, fail, options) {
this.win = win;
this.fail = fail;
PhoneGap.execAsync(null, null, "Contacts", "search", [fields, options]);
PhoneGap.execAsync(win, fail, "Contacts", "search", [fields, options]);
};
//This function does not create a new contact in the db.