diff --git a/framework/assets/js/contact.js b/framework/assets/js/contact.js index a4c13669..1ebe89a7 100644 --- a/framework/assets/js/contact.js +++ b/framework/assets/js/contact.js @@ -100,7 +100,9 @@ Contacts.prototype.find = function(fields, win, fail, options) { PhoneGap.execAsync(null, null, "Contacts", "search", [fields, options]); }; -Contacts.prototype.wacky = function(properties) { +//This function does not create a new contact in the db. +//Must call contact.save() for it to be persisted in the db. +Contacts.prototype.create = function(properties) { var contact = new Contact(); for (i in properties) { if (contact[i]!='undefined') { @@ -114,11 +116,6 @@ Contacts.prototype.droidDone = function(contacts) { this.win(eval('(' + contacts + ')')); }; -// This function does not create a new contact in the db. -// Must call contact.save() for it to be persisted in the db. -Contacts.prototype.create = function(contact) { -}; - Contacts.prototype.m_foundContacts = function(win, contacts) { this.inProgress = false; win(contacts); diff --git a/framework/assets/www/phonegap.js b/framework/assets/www/phonegap.js index f581a56f..839ba758 100644 --- a/framework/assets/www/phonegap.js +++ b/framework/assets/www/phonegap.js @@ -1049,7 +1049,9 @@ Contacts.prototype.find = function(fields, win, fail, options) { PhoneGap.execAsync(null, null, "Contacts", "search", [fields, options]); }; -Contacts.prototype.wacky = function(properties) { +//This function does not create a new contact in the db. +//Must call contact.save() for it to be persisted in the db. +Contacts.prototype.create = function(properties) { var contact = new Contact(); for (i in properties) { if (contact[i]!='undefined') { @@ -1063,11 +1065,6 @@ Contacts.prototype.droidDone = function(contacts) { this.win(eval('(' + contacts + ')')); }; -// This function does not create a new contact in the db. -// Must call contact.save() for it to be persisted in the db. -Contacts.prototype.create = function(contact) { -}; - Contacts.prototype.m_foundContacts = function(win, contacts) { this.inProgress = false; win(contacts);