summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-24 17:47:57 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-26 14:32:50 +0300
commitaead18eb58e230ed06ac090f7ea36c64fd597992 (patch)
tree657e83d16673105546e6e03567eeaaa128aeea17
parenta0c02f4a5008f9ce47a4dac811aad7efdef5cc21 (diff)
downloadwekan-aead18eb58e230ed06ac090f7ea36c64fd597992.tar.gz
wekan-aead18eb58e230ed06ac090f7ea36c64fd597992.tar.bz2
wekan-aead18eb58e230ed06ac090f7ea36c64fd597992.zip
change all mentions of Kids => Children
-rw-r--r--models/cards.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/cards.js b/models/cards.js
index 4ec3ea7c..2563fdf8 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -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}};
},