Code refactoring (v2)

This commit is contained in:
RainLoop Team 2016-06-17 02:23:49 +03:00
parent 90d95d3ca4
commit 80ab02363e
29 changed files with 858 additions and 857 deletions

View file

@ -258,7 +258,7 @@
MessageStore.messageListCheckedOrSelectedUidsWithSubMails(), true);
}, this.canBeMoved);
this.moveCommand = Utils.createCommand(this, Utils.emptyFunction, this.canBeMoved);
this.moveCommand = Utils.createCommand(this, Utils.noop, this.canBeMoved);
this.reloadCommand = Utils.createCommand(this, function () {
if (!MessageStore.messageListCompleteLoadingThrottleForAnimation() && this.allowReload)
@ -558,7 +558,7 @@
Cache.clearMessageFlagsFromCacheByFolder(sFolderFullNameRaw);
}
Remote.messageSetSeenToAll(Utils.emptyFunction, sFolderFullNameRaw, true);
Remote.messageSetSeenToAll(Utils.noop, sFolderFullNameRaw, true);
break;
case Enums.MessageSetAction.UnsetSeen:
oFolder = Cache.getFolderFromCacheList(sFolderFullNameRaw);
@ -571,7 +571,7 @@
oFolder.messageCountUnread(oFolder.messageCountAll());
Cache.clearMessageFlagsFromCacheByFolder(sFolderFullNameRaw);
}
Remote.messageSetSeenToAll(Utils.emptyFunction, sFolderFullNameRaw, false);
Remote.messageSetSeenToAll(Utils.noop, sFolderFullNameRaw, false);
break;
}
@ -784,11 +784,6 @@
{
var self = this;
// disable print
key('ctrl+p, command+p', Enums.KeyState.MessageList, function () {
return false;
});
key('enter', Enums.KeyState.MessageList, function () {
if (self.message() && self.useAutoSelect())
{