diff --git a/framework/assets/js/contact.js b/framework/assets/js/contact.js index 721d228e..05be9341 100644 --- a/framework/assets/js/contact.js +++ b/framework/assets/js/contact.js @@ -132,11 +132,11 @@ Contacts.prototype.m_foundContacts = function(win, contacts) { win(contacts); }; -var ContactFindOptions = function() { - this.filter = ''; - this.multiple = true; - this.limit = 0; - this.updatedSince = 0; +var ContactFindOptions = function(filter, multiple, limit, updatedSince) { + this.filter = filter || ''; + this.multiple = multiple || true; + this.limit = limit || 0; + this.updatedSince = updatedSince || ''; }; var ContactError = function() { diff --git a/framework/assets/www/phonegap.js b/framework/assets/www/phonegap.js index 64d7c73e..6cb55124 100644 --- a/framework/assets/www/phonegap.js +++ b/framework/assets/www/phonegap.js @@ -1061,11 +1061,11 @@ Contacts.prototype.m_foundContacts = function(win, contacts) { win(contacts); }; -var ContactFindOptions = function() { - this.filter = ''; - this.multiple = true; - this.limit = 0; - this.updatedSince = 0; +var ContactFindOptions = function(filter, multiple, limit, updatedSince) { + this.filter = filter || ''; + this.multiple = multiple || true; + this.limit = limit || 0; + this.updatedSince = updatedSince || ''; }; var ContactError = function() {