(js) Minor cleanup

This commit is contained in:
Francis Lachapelle committed 2016-06-02 11:24:58 -04:00
1 parent 6b2ae87010
commit 6d8dc29f28
5 files changed
+2 -17

No files matched your search

@@ -176,19 +176,6 @@
return _.union(this.$addressbooks, this.$subscriptions, this.$remotes);
};
/**
* @memberOf AddressBook
* @desc Fetch list of cards and return an AddressBook instance.
* @param {string} addressbookId - the addressbook identifier
* @returns an AddressBook object instance
*/
AddressBook.$find = function(addressbookId) {
var futureAddressBookData = AddressBook.$Preferences.ready().then(function() {
return AddressBook.$$resource.fetch(addressbookId, 'view', AddressBook.$query);
});
return new AddressBook(futureAddressBookData);
};
/**
* @memberOf AddressBook
* @desc Subscribe to another user's addressbook and add it to the list of addressbooks.