Removed reference to character helper

This commit is contained in:
Stefan Zermatten
2015-06-25 14:22:07 +02:00
parent fc26f5a73e
commit da8b91594e

View File

@@ -107,7 +107,8 @@ Template.resource.helpers({
return !valuePositive;
},
getColor: function(){
if (this.char.attributeValue(this.name) > 0){
var value = Characters.calculate.attributeValue(this.char._id, this.name);
if (value > 0){
return this.color;
} else {
return "grey";