(js) AddressBook service: Improve documentation
parent
b37892e033
commit
2fa0e91ca7
|
@ -71,16 +71,6 @@
|
|||
});
|
||||
};
|
||||
|
||||
AddressBook.prototype.$selectedCount = function() {
|
||||
var count;
|
||||
|
||||
count = 0;
|
||||
if (this.cards) {
|
||||
count = (_.filter(this.cards, function(card) { return card.selected })).length;
|
||||
}
|
||||
return count;
|
||||
};
|
||||
|
||||
/**
|
||||
* @memberof AddressBook
|
||||
* @desc Add a new addressbook to the static list of addressbooks
|
||||
|
@ -185,6 +175,22 @@
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $selectedCount
|
||||
* @memberof AddressBook.prototype
|
||||
* @desc Return the number of cards selected by the user.
|
||||
* @returns the number of selected cards
|
||||
*/
|
||||
AddressBook.prototype.$selectedCount = function() {
|
||||
var count;
|
||||
|
||||
count = 0;
|
||||
if (this.cards) {
|
||||
count = (_.filter(this.cards, function(card) { return card.selected })).length;
|
||||
}
|
||||
return count;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $filter
|
||||
* @memberof AddressBook.prototype
|
||||
|
|
Loading…
Reference in New Issue