mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Fixing Contacts.find to use PluginResult
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user