(js) AddressBook service: Improve documentation

pull/91/head
Francis Lachapelle 2015-05-08 16:42:46 -04:00
parent b37892e033
commit 2fa0e91ca7
1 changed files with 16 additions and 10 deletions

View File

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