change all mentions of Kids => Children

This commit is contained in:
Nicu Tofan 2018-06-24 17:47:57 +03:00
parent a0c02f4a50
commit aead18eb58
No known key found for this signature in database
GPG key ID: 7EE66E95E64FD0B7

View file

@ -332,19 +332,19 @@ Cards.helpers({
});
Cards.mutations({
applyToKids(funct) {
applyToChildren(funct) {
Cards.find({ parentId: this._id }).forEach((card) => {
funct(card);
});
},
archive() {
this.applyToKids((card) => { return card.archive(); });
this.applyToChildren((card) => { return card.archive(); });
return {$set: {archived: true}};
},
restore() {
this.applyToKids((card) => { return card.restore(); });
this.applyToChildren((card) => { return card.restore(); });
return {$set: {archived: false}};
},