mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-05 11:35:26 +00:00
(js) Minor cleanup
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user