Permalink
Browse files

just one isFavorite

  • Loading branch information...
1 parent 233c1f4 commit 19923a63a01fc5d6b07d57b4903e12b0ce845efc @rmurphey committed Apr 17, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −1 www/js/app/models/Person.js
  2. +0 −4 www/js/app/services/Favorites.js
@@ -20,7 +20,7 @@ dojo.declare('app.models.Person', [], {
},
isFavorite : function() {
- return !!app.services.Favorites.isFavorite(this.data.id);
+ return !!app.services.Favorites.get(this.data.id);
}
});
@@ -24,10 +24,6 @@ dojo.require('dojo.store.Memory');
});
},
- isFavorite : function(id) {
- return !!this.get(id);
- },
-
put : function() {
this.inherited(arguments);
this._save();

0 comments on commit 19923a6

Please sign in to comment.