mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Code refactoring (5) (es5 -> es2015)
This commit is contained in:
parent
c148e19ea3
commit
cec53b111f
68 changed files with 2210 additions and 2472 deletions
|
|
@ -60,15 +60,14 @@ function PluginPopupView()
|
|||
list.Name = this.name();
|
||||
|
||||
_.each(this.configures(), function(oItem) {
|
||||
|
||||
var value = oItem.value();
|
||||
|
||||
if (false === value || true === value)
|
||||
{
|
||||
value = value ? '1' : '0';
|
||||
}
|
||||
|
||||
list['_' + oItem.Name] = value;
|
||||
|
||||
}, this);
|
||||
|
||||
this.saveError('');
|
||||
|
|
@ -119,6 +118,7 @@ PluginPopupView.prototype.onShow = function(oPlugin)
|
|||
this.readme(oPlugin.Readme);
|
||||
|
||||
var aConfig = oPlugin.Config;
|
||||
|
||||
if (Utils.isNonEmptyArray(aConfig))
|
||||
{
|
||||
this.configures(_.map(aConfig, function(aItem) {
|
||||
|
|
@ -160,6 +160,7 @@ PluginPopupView.prototype.onBuild = function()
|
|||
{
|
||||
this.tryToClosePopup();
|
||||
}
|
||||
|
||||
return false;
|
||||
}, this));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue