Fix duplicate method name

This commit is contained in:
macdonst 2010-10-02 05:10:24 +08:00
parent c91ea37438
commit c80397ad68
2 changed files with 6 additions and 12 deletions

View File

@ -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);

View File

@ -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);