mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 18:50:07 +00:00
feat(taskList): cleanup
This commit is contained in:
parent
15870beab4
commit
07eff8d684
1 changed files with 0 additions and 7 deletions
|
|
@ -426,14 +426,7 @@
|
|||
}
|
||||
|
||||
static moveItem(array, oldIndex, newIndex) {
|
||||
if (newIndex >= array.length) {
|
||||
let k = newIndex - array.length;
|
||||
while ((k--) + 1) {
|
||||
array.push(undefined);
|
||||
}
|
||||
}
|
||||
array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]);
|
||||
return array; // for testing purposes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue