mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
es5 -> es2015 (last stage)
Signature plugin fixes Add view decorator A large number of fixes
This commit is contained in:
parent
e88c193334
commit
17669b7be0
153 changed files with 21193 additions and 21115 deletions
|
|
@ -218,10 +218,10 @@ class EmailModel
|
|||
return false;
|
||||
}
|
||||
|
||||
var
|
||||
substr = function(str, start, len) {
|
||||
const
|
||||
substr = (str, start, len) => {
|
||||
str = pString(str);
|
||||
var end = str.length;
|
||||
let end = str.length;
|
||||
|
||||
if (0 > start)
|
||||
{
|
||||
|
|
@ -233,7 +233,7 @@ class EmailModel
|
|||
return start >= str.length || 0 > start || start > end ? false : str.slice(start, end);
|
||||
},
|
||||
|
||||
substrReplace = function(str, replace, start, length) {
|
||||
substrReplace = (str, replace, start, length) => {
|
||||
str = pString(str);
|
||||
if (0 > start)
|
||||
{
|
||||
|
|
@ -246,8 +246,9 @@ class EmailModel
|
|||
length = length + str.length - start;
|
||||
}
|
||||
return str.slice(0, start) + replace.substr(0, length) + replace.slice(length) + str.slice(start + length);
|
||||
},
|
||||
};
|
||||
|
||||
let
|
||||
$sName = '',
|
||||
$sEmail = '',
|
||||
$sComment = '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue