diff --git a/framework/assets/js/contact.js b/framework/assets/js/contact.js index 984ca37f..9da9ab3b 100755 --- a/framework/assets/js/contact.js +++ b/framework/assets/js/contact.js @@ -242,7 +242,7 @@ var Contacts = function() { * @return array of Contacts matching search criteria */ Contacts.prototype.find = function(fields, successCB, errorCB, options) { - PhoneGap.exec(successCB, errorCB, "Contacts", "search", [fields, options], navigator.service.contacts.cast); + PhoneGap.exec(successCB, errorCB, "Contacts", "search", [fields, options]); }; /** @@ -270,12 +270,13 @@ Contacts.prototype.create = function(properties) { * @param jsonArray an array of JSON Objects that need to be converted to Contact objects. * @returns an array of Contact objects */ -Contacts.prototype.cast = function(jsonArray) { +Contacts.prototype.cast = function(pluginResult) { var contacts = new Array(); - for (var i=0; i