mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Remove unused data from KnockoutJS
This commit is contained in:
parent
5cb4d338a1
commit
bf756c9279
6 changed files with 6 additions and 39 deletions
|
|
@ -118,7 +118,7 @@ ko.extenders['trackArrayChanges'] = (target, options) => {
|
|||
case 'push':
|
||||
offset = arrayLength;
|
||||
case 'unshift':
|
||||
for (var index = 0; index < argsLength; index++) {
|
||||
for (let index = 0; index < argsLength; index++) {
|
||||
pushDiff('added', args[index], offset + index);
|
||||
}
|
||||
break;
|
||||
|
|
@ -139,7 +139,7 @@ ko.extenders['trackArrayChanges'] = (target, options) => {
|
|||
endAddIndex = startIndex + argsLength - 2,
|
||||
endIndex = Math.max(endDeleteIndex, endAddIndex),
|
||||
additions = [], deletions = [];
|
||||
for (var index = startIndex, argsIndex = 2; index < endIndex; ++index, ++argsIndex) {
|
||||
for (let index = startIndex, argsIndex = 2; index < endIndex; ++index, ++argsIndex) {
|
||||
if (index < endDeleteIndex)
|
||||
deletions.push(pushDiff('deleted', rawArray[index], index));
|
||||
if (index < endAddIndex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue