AddressBook JS model: rename $all to $findAll

This commit is contained in:
Francis Lachapelle
2014-09-23 11:52:47 -04:00
parent 32d732caf0
commit df37fd8b92
4 changed files with 41 additions and 28 deletions
@@ -29,7 +29,11 @@
Card.$URL_TYPES = ['work', 'home', 'pref'];
Card.$ADDRESS_TYPES = ['work', 'home'];
/* The factory we'll use to register with Angular */
/**
* @memberof Card
* @desc The factory we'll use to register with Angular
* @returns the Card constructor
*/
Card.$factory = ['$timeout', 'sgSettings', 'sgResource', function($timeout, Settings, Resource) {
angular.extend(Card, {
$$resource: new Resource(Settings.baseURL),