Improve PR, adding more comments

This commit is contained in:
floatinghotpot 2016-01-06 16:59:25 +08:00
parent 9bbdacc79a
commit 39e1cc0237
3 changed files with 32 additions and 26 deletions

View file

@ -57,9 +57,9 @@ Users.helpers({
return _.contains(notifications, activityId);
},
getEmailCache() {
const {emailCache = []} = this.profile;
return emailCache;
getEmailBuffer() {
const {emailBuffer = []} = this.profile;
return emailBuffer;
},
getInitials() {
@ -153,18 +153,18 @@ Users.mutations({
};
},
addEmailCache(text) {
addEmailBuffer(text) {
return {
$addToSet: {
'profile.emailCache': text,
'profile.emailBuffer': text,
},
};
},
clearEmailCache() {
clearEmailBuffer() {
return {
$set: {
'profile.emailCache': [],
'profile.emailBuffer': [],
},
};
},