mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 07:27:04 +03:00
Small code reduction in Knockout
This commit is contained in:
parent
78178ecc2f
commit
cab81d5214
3 changed files with 25 additions and 25 deletions
|
|
@ -160,10 +160,10 @@
|
|||
|
||||
// Try to reduce overall moved nodes by first moving the ones that were marked as moved by the edit script
|
||||
if (itemsToMoveFirstIndexes.length) {
|
||||
while ((i = itemsToMoveFirstIndexes.shift()) != undefined) {
|
||||
while ((i = itemsToMoveFirstIndexes.shift()) != null) {
|
||||
mapData = newMappingResult[i];
|
||||
for (lastNode = undefined; i; ) {
|
||||
mappedNodes = newMappingResult[--i].mappedNodes;
|
||||
while (i--) {
|
||||
mappedNodes = newMappingResult[i].mappedNodes;
|
||||
if (mappedNodes?.length) {
|
||||
lastNode = mappedNodes[mappedNodes.length - 1];
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue