Files
DiceCloud/rpg-docs/client/views/character/proficiencies/proficiencyViewList/proficiencyViewList.js
2017-01-12 15:28:59 +02:00

13 lines
271 B
JavaScript

Template.proficiencyViewList.helpers({
proficiencies: function(){
var selector = {
"parent.id": this.parentId,
"charId": this.charId,
};
if (this.parentGroup){
selector["parent.group"] = this.parentGroup;
}
return Proficiencies.find(selector);
}
});