This commit is contained in:
Ruud
2014-02-07 15:11:06 +01:00
parent 99252074be
commit a609b401c4
18 changed files with 316 additions and 395 deletions
@@ -17,7 +17,7 @@ var QualityBase = new Class({
getProfile: function(id){
return this.profiles.filter(function(profile){
return profile.data.id == id
return profile.data._id == id
}).pick()
},
@@ -28,9 +28,9 @@ var QualityBase = new Class({
});
},
getQuality: function(id){
getQuality: function(identifier){
return this.qualities.filter(function(q){
return q.id == id;
return q.identifier == identifier;
}).pick();
},